Struct maglev::Maglev
[−]
[src]
pub struct Maglev<N, S> { /* fields omitted */ }
Maglev lookup table
Methods
impl<'a, N: 'a + Hash + Clone> Maglev<N, BuildHasherDefault<DefaultHasher>>
[src]
fn new<I: Into<&'a [N]>>(nodes: I) -> Self
Creates a Maglev
lookup table.
fn with_capacity<I: Into<&'a [N]>>(nodes: I, capacity: usize) -> Self
Creates a Maglev
lookup table with the specified capacity.
impl<'a, N: 'a + Hash + Clone, S: BuildHasher> Maglev<N, S>
[src]
fn with_hasher<I: Into<&'a [N]>>(nodes: I, hash_builder: S) -> Self
Creates a Maglev
lookup table which will use the given hash builder to hash keys.
fn with_capacity_and_hasher<I: Into<&'a [N]>>(
nodes: I,
capacity: usize,
hash_builder: S
) -> Self
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
impl<N: Clone, S: Clone> Clone for Maglev<N, S>
[src]
fn clone(&self) -> Maglev<N, S>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more