fn ensureTotalCapacity(self: *Self, expected_count: Size) Allocator.Error!void

Increases capacity, guaranteeing that insertions up until the expected_count will not cause an allocation, and therefore cannot fail.

Parameters

self: *Self,
expected_count: Size,