Trait acme_core::prelude::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,

§

type Key = K

§

type Value = V

source§

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

Implementors§