[][src]Trait containers_rs::CopyDictionary

pub trait CopyDictionary<'a, K, V, R = &'a V, Rm = &'a mut V>: CopyMap<'a, K, V, V, R, Rm> + DynamicContainer<(K, V)> + Index<K, Output = V> + IndexMut<K, Output = V> where
    Self: 'a,
    K: Copy + Eq,
    V: 'a,
    R: Deref<Target = V>,
    Rm: DerefMut<Target = V>, 
{ fn remove(&mut self, k: K) -> Option<V>; fn contains(&'a self, key: K) -> bool { ... } }

Key-value map that also uses the [bracket] operators to access and modify the internal data.

Required methods

fn remove(&mut self, k: K) -> Option<V>

Removes an item from this container using the associated key, and returns it (if it existed).

Loading content...

Provided methods

fn contains(&'a self, key: K) -> bool

Returns true if this container contains the key.

Loading content...

Implementors

Loading content...