Trait std::collections::Map[src]
pub trait Map<K, V>: Collection {
fn find<K, V>(&'a self, key: &K) -> Option<&'a V>;
fn contains_key<K, V>(&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<K, V>(&'a self, key: &K) -> Option<&'a V>
Return a reference to the value corresponding to the key
Provided Methods
fn contains_key<K, V>(&self, key: &K) -> bool
Return true if the map contains a value for the specified key