pub type PreHashSet<T> = HashSet<T, BuildHashMapper<T>>;Expand description
HashSet specialization for PreHashed keys
This hashset is about 2x faster than the default HashSet
Aliased Type§
pub struct PreHashSet<T> { /* private fields */ }Trait Implementations§
Source§impl<K: PreHashed> CapacityAllocator for PreHashSet<K>
impl<K: PreHashed> CapacityAllocator for PreHashSet<K>
Source§fn with_capacity(capacity: usize) -> Self
fn with_capacity(capacity: usize) -> Self
pre-allocate with a given capacity