fn shrinkAndFree(self: *Self, allocator: Allocator, new_len: usize) void

Reduce allocated capacity to new_len. May invalidate element pointers.

Parameters

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