fn load(self: Self) Size
This counts the number of occupied slots (not counting tombstones), which is what has to stay under the max_load_percentage of capacity.
self: Self
1288 1289 1290 1291 1292
fn load(self: Self) Size { const max_load = (self.capacity() * max_load_percentage) / 100; assert(max_load >= self.available); return @as(Size, @truncate(max_load - self.available)); }
This counts the number of occupied slots (not counting tombstones), which is what has to stay under the max_load_percentage of capacity.