[][src]Struct boomphf::hashmap::BoomHashMap2

pub struct BoomHashMap2<K: Hash, D1, D2> { /* fields omitted */ }

A HashMap data structure where the mapping between keys and 2 values is encoded in a Mphf. You should usually use BoomHashMap with a tuple/struct value type. If the layout overhead of the struct / tuple must be avoided, this variant of is an alternative. This lets us store the keys and values in dense arrays, with ~3 bits/item overhead in the Mphf.

Methods

impl<K, D1, D2> BoomHashMap2<K, D1, D2> where
    K: Clone + Hash + Debug + PartialEq,
    D1: Debug,
    D2: Debug
[src]

Create a new hash map from the parallel arrays keys and values, and aux_values

Important traits for Boom2Iterator<'a, K, D1, D2>

impl<K, D1, D2> BoomHashMap2<K, D1, D2> where
    K: Clone + Hash + Debug + PartialEq + Send + Sync,
    D1: Debug,
    D2: Debug
[src]

Create a new hash map from the parallel arrays keys and values, and aux_values, using a parallel algorithm to construct the Mphf.

Trait Implementations

impl<'a, K: Hash, D1, D2> IntoIterator for &'a BoomHashMap2<K, D1, D2>
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

impl<K: Debug + Hash, D1: Debug, D2: Debug> Debug for BoomHashMap2<K, D1, D2>
[src]

Auto Trait Implementations

impl<K, D1, D2> Send for BoomHashMap2<K, D1, D2> where
    D1: Send,
    D2: Send,
    K: Send

impl<K, D1, D2> Sync for BoomHashMap2<K, D1, D2> where
    D1: Sync,
    D2: Sync,
    K: Sync

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]