PreHashMap

Type Alias PreHashMap 

Source
pub type PreHashMap<K, V> = HashMap<K, V, BuildHashMapper<K>>;
Expand description

HashMap specialization for PreHashed keys This hashmap is about 2x faster than the default HashMap

Aliased Type§

pub struct PreHashMap<K, V> { /* private fields */ }

Trait Implementations§

Source§

impl<K: PreHashed, V> CapacityAllocator for PreHashMap<K, V>

Source§

fn with_capacity(capacity: usize) -> Self

pre-allocate with a given capacity