Struct oldnav_lib::navdata::multihash::MultiHash [] [src]

pub struct MultiHash<K, V> {
    // some fields omitted
}

Not currently used

Methods

impl<K: Hash + Eq + Clone, V> MultiHash<K, V>
[src]

fn new() -> MultiHash<K, V>

Constructor for MultiHash

fn insert(&mut self, key: K, value: V)

Insert a new value

fn get(&self, key: &K) -> Option<&Vec<V>>

Get a value out

fn get_mut(&mut self, key: &K) -> Option<&mut Vec<V>>

Get a mutable value out

fn contains_key(&self, key: &K) -> bool

Check whether this hash contains any items associated with a given key

Trait Implementations

impl<K: Hash + Eq, V> Debug for MultiHash<K, V>
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.