DoxigAlpha

shrinkRetainingCapacity

Reduce length to new_len. Invalidates pointers to elements items[new_len..]. Keeps capacity the same.

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 shrinkRetainingCapacity(self: *Self, new_len: usize) void {
    self.len = new_len;
}