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]

Creates a Maglev lookup table.

Creates a Maglev lookup table with the specified capacity.

impl<'a, N: 'a + Hash + Clone, S: BuildHasher> Maglev<N, S>
[src]

Creates a Maglev lookup table which will use the given hash builder to hash keys.

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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a, N: Hash, S: BuildHasher> ConsistentHasher<N> for Maglev<N, S>
[src]

Returns all nodes in arbitrary order.

Returns the number of slots in the lookup table.

Returns a reference to the node corresponding to the key.