Function hashbrown::raw::capacity_to_buckets

source ยท
fn capacity_to_buckets(cap: usize) -> Option<usize>
Expand description

Returns the number of buckets needed to hold the given number of items, taking the maximum load factor into account.

Returns None if an overflow occurs.