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: Eq + Hash> Get<K> for HashSet<K>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<K: RTreeObject + PartialEq> Get<K> for RTree<K>

Source§

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

Source§

impl<V> Get<usize> for Vec<V>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Implementors§