Trait collection::MapOps [] [src]

pub trait MapOps<K, V, M> where Self: Sized, M: Meta<KV<K, V>>, K: Val + Ord, V: Clone {
    fn insert(&mut self, key: K, V);
    fn remove(&mut self, key: K) -> Option<V>;
    fn get(&self, key: K) -> Option<&V>;
    fn get_mut(&mut self, key: K) -> Option<ValContext<KV<K, V>, M, Beginning>>;
}

Map operations on a Collection

Required Methods

Insert a value V at key K

Remove value at key K

Get a reference to the value at key K

Get a mutable reference to the value at key K

Implementors