Trait concision_core::Entry

source ·
pub trait Entry<'a> {
    type Key;
    type Value;

    // Required methods
    fn key(&self) -> &Self::Key;
    fn or_insert(self, default: Self::Value) -> &'a mut Self::Value;
}

Required Associated Types§

Required Methods§

source

fn key(&self) -> &Self::Key

source

fn or_insert(self, default: Self::Value) -> &'a mut Self::Value

Implementations on Foreign Types§

source§

impl<'a, K, V> Entry<'a> for Entry<'a, K, V>
where K: Ord,

§

type Key = K

§

type Value = V

source§

fn key(&self) -> &Self::Key

source§

fn or_insert(self, default: Self::Value) -> &'a mut Self::Value

source§

impl<'a, K, V> Entry<'a> for Entry<'a, K, V>
where K: Eq + Hash,

§

type Key = K

§

type Value = V

source§

fn key(&self) -> &Self::Key

source§

fn or_insert(self, default: Self::Value) -> &'a mut Self::Value

Implementors§