Function replace [src]
Prototype
 pub fn replace(self: Index, other: Index, builder: *Builder) Allocator.Error!void  Parameters
self: Indexother: Indexbuilder: *Builder Source
 pub fn replace(self: Index, other: Index, builder: *Builder) Allocator.Error!void {
    try builder.ensureUnusedGlobalCapacity(.empty);
    self.replaceAssumeCapacity(other, builder);
}