Trait std::container::Map
pub trait Map<K, V>: Container { fn find<'a>(&'a self, key: &K) -> Option<&'a V>; fn contains_key(&self, key: &K) -> bool { ... } }
A map is a key-value store where values may be looked up by their keys. This trait provides basic operations to operate on these stores.
Required Methods
fn find<'a>(&'a self, key: &K) -> Option<&'a V>
Return a reference to the value corresponding to the key
Provided Methods
fn contains_key(&self, key: &K) -> bool
Return true if the map contains a value for the specified key