Function rename [src]
Prototype
pub fn rename(self: Index, new_name: StrtabString, builder: *Builder) Allocator.Error!void
Parameters
self: Index
new_name: StrtabString
builder: *Builder
Source
pub fn rename(self: Index, new_name: StrtabString, builder: *Builder) Allocator.Error!void {
try builder.ensureUnusedGlobalCapacity(new_name);
self.renameAssumeCapacity(new_name, builder);
}