fn ensureTotalCapacity(self: *Self, new_capacity: usize) !void
Increases capacity, guaranteeing that insertions up until the expected_count will not cause an allocation, and therefore cannot fail.
expected_count
self: *Self,
new_capacity: usize,