Trait Get

Source
pub trait Get<Q> {
    type Key: Borrow<Q>;
    type Value;

    // Required method
    fn get(&self, key: &Q) -> Option<&Self::Value>;
}

Required Associated Types§

Required Methods§

Source

fn get(&self, key: &Q) -> Option<&Self::Value>

Implementations on Foreign Types§

Source§

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

Source§

type Key = K

Source§

type Value = V

Source§

fn get(&self, key: &Q) -> Option<&Self::Value>

Implementors§