pub fn attr(self: *Builder, attribute: Attribute) Allocator.Error!Attribute.Index 10193
10194
10195
10196
10197
10198
10199pub fn attr(self: *Builder, attribute: Attribute) Allocator.Error!Attribute.Index {
try self.attributes.ensureUnusedCapacity(self.gpa, 1);
const gop = self.attributes.getOrPutAssumeCapacity(attribute.toStorage());
if (!gop.found_existing) gop.value_ptr.* = {};
return @fromBackingInt(@intCast(gop.index));
}