fn replaceAssumeCapacity(self: Index, other: Index, builder: *Builder) void 3477
3478
3479
3480
3481
3482 fn replaceAssumeCapacity(self: Index, other: Index, builder: *Builder) void {
if (self.eql(other, builder)) return;
builder.next_replaced_global = @fromBackingInt(@backingInt(builder.next_replaced_global) - 1);
self.renameAssumeCapacity(builder.next_replaced_global, builder);
self.ptr(builder).kind = .{ .replaced = other.unwrap(builder) };
}