Type Alias massa_models::prehash::PreHashSet
source · 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§
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