fn ensureUnusedCapacity(self: *Self, allocator: Allocator, additional_capacity: usize) !void

Increases capacity, guaranteeing that insertions up until additional_count more items will not cause an allocation, and therefore cannot fail.

Parameters

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