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> {
    base: HashSet<T, BuildHasherDefault<HashMapper<T>>, Global>,
}

Fields§

§base: HashSet<T, BuildHasherDefault<HashMapper<T>>, Global>

Trait Implementations§

source§

impl<K: PreHashed> CapacityAllocator for PreHashSet<K>

source§

fn with_capacity(capacity: usize) -> Self

pre-allocate with a given capacity