Trait CopyDictionary

Source
pub trait CopyDictionary<K, V>: CopyMap<K, V> + DynamicContainer
where K: Copy + Eq,
{ // Required method fn remove(&mut self, k: K) -> Option<V>; // Provided method fn contains(&self, key: K) -> bool { ... } }
Expand description

Key-value map that can dynamically change size, indexed by a key that implements Copy.

Required Methods§

Source

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

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

Provided Methods§

Source

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

Returns true if this container contains the key.

Implementors§