Get

Trait Get 

Source
pub trait Get<K>: Map {
    // Required method
    fn get(&self, key: &K) -> Option<&Self::Item>;
}
Expand description

Returns a reference to the value corresponding to the key.

Required Methods§

Source

fn get(&self, key: &K) -> Option<&Self::Item>

Returns a reference to the value corresponding to the key.

Implementations on Foreign Types§

Source§

impl<K> Get<K> for BTreeSet<K>
where K: Ord,

Source§

fn get(&self, key: &K) -> Option<&()>

Source§

impl<K> Get<K> for HashSet<K>
where K: Eq + Hash,

Source§

fn get(&self, key: &K) -> Option<&()>

Source§

impl<K> Get<K> for RTree<K>

Source§

fn get(&self, key: &K) -> Option<&()>

Source§

impl<K, V> Get<K> for BTreeMap<K, V>
where K: Ord,

Source§

fn get(&self, key: &K) -> Option<&V>

Source§

impl<K, V> Get<K> for HashMap<K, V>
where K: Eq + Hash,

Source§

fn get(&self, key: &K) -> Option<&V>

Source§

impl<V> Get<Index> for Arena<V>

Source§

fn get(&self, key: &Index) -> Option<&V>

Source§

impl<V, C> Get<usize> for StableVecFacade<V, C>
where C: Core<V>,

Source§

fn get(&self, index: &usize) -> Option<&V>

Implementors§

Source§

impl<K, V: RTreeObject, C: Get<K, Item = V>> Get<K> for RTreed<K, V, C>