pub fn replaceRangeAssumeCapacity(self: *Self, start: usize, len: usize, new_items: []const T) void self: *Selfstart: usizelen: usizenew_items: []const T281
282
283
284
285 pub fn replaceRangeAssumeCapacity(self: *Self, start: usize, len: usize, new_items: []const T) void {
var unmanaged = self.moveToUnmanaged();
defer self.* = unmanaged.toManaged(self.allocator);
return unmanaged.replaceRangeAssumeCapacity(start, len, new_items);
}
Grows or shrinks the list as necessary. Invalidates pointers to elements at and above index
start + lenwhenlenandnew_items.lenare unequal. Asserts the capacity is enough for additional items.