Struct maglev::Maglev [−][src]
pub struct Maglev<N, S = BuildHasherDefault<DefaultHasher>> { /* fields omitted */ }
Expand description
Maglev lookup table
Implementations
Creates a Maglev
lookup table.
Creates a Maglev
lookup table with the specified capacity.
Creates a Maglev
lookup table which will use the given hash builder to hash keys.
pub fn with_capacity_and_hasher<I: IntoIterator<Item = N>>(
nodes: I,
capacity: usize,
hash_builder: S
) -> Self
pub fn with_capacity_and_hasher<I: IntoIterator<Item = N>>(
nodes: I,
capacity: usize,
hash_builder: S
) -> Self
Creates a Maglev
lookup table with the specified capacity, using hasher to hash the keys.
Trait Implementations
Auto Trait Implementations
impl<N, S> RefUnwindSafe for Maglev<N, S> where
N: RefUnwindSafe,
S: RefUnwindSafe,
impl<N, S> UnwindSafe for Maglev<N, S> where
N: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more