DoxigAlpha

resize

Adjust the list's length to new_len. Does not initialize added items, if any.

Function parameters

Parameters

#
self:*Self
new_len:usize

A MultiArrayList stores a list of a struct or tagged union type.

Functions

#
MultiArrayList
A MultiArrayList stores a list of a struct or tagged union type.

Source

Implementation

#
pub fn resize(self: *Self, gpa: Allocator, new_len: usize) !void {
    try self.ensureTotalCapacity(gpa, new_len);
    self.len = new_len;
}