Function rename [src]

Prototype

pub fn rename(self: Index, new_name: StrtabString, builder: *Builder) Allocator.Error!void

Parameters

self: Indexnew_name: StrtabStringbuilder: *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); }