[][src]Trait containers_rs::Dictionary

pub trait Dictionary<K, V>: Map<K, V> + DynamicContainer where
    K: Eq
{ fn remove<Q: ?Sized>(&mut self, k: &Q) -> Option<V>
    where
        K: Borrow<Q>,
        Q: Eq
; fn contains<Q: ?Sized>(&self, key: &Q) -> bool
    where
        K: Borrow<Q>,
        Q: Eq
, { ... } }

Key-value map that can dynamically change size.

Required methods

fn remove<Q: ?Sized>(&mut self, k: &Q) -> Option<V> where
    K: Borrow<Q>,
    Q: Eq

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

Loading content...

Provided methods

fn contains<Q: ?Sized>(&self, key: &Q) -> bool where
    K: Borrow<Q>,
    Q: Eq

Returns true if this container contains the key.

Loading content...

Implementors

Loading content...