Struct std::collections::hash_map::DefaultResizePolicy
[−]
[src]
struct DefaultResizePolicy;
The default behavior of HashMap implements a load factor of 90.9%. This behavior is characterized by the following condition:
- if size > 0.909 * capacity: grow the map
Methods
impl DefaultResizePolicy
fn new() -> DefaultResizePolicy
fn min_capacity(&self, usable_size: usize) -> usize
fn usable_capacity(&self, cap: usize) -> usize
An inverse of min_capacity
, approximately.