fn resize(self: *Self, allocator: Allocator, new_len: usize) Allocator.Error!void

Adjust the list’s length to new_len. Does not initialize added items, if any. Invalidates pointers if additional memory is needed.

Parameters

self: *Self,
allocator: Allocator,
new_len: usize,