Trait VacantEntry

Source
pub trait VacantEntry<'a> {
    type K;
    type V;

    // Required methods
    fn key(&self) -> &Self::K;
    fn into_key(self) -> Self::K;
    fn insert(self, v: Self::V) -> &'a mut Self::V;
}

Required Associated Types§

Source

type K

Source

type V

Required Methods§

Source

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

Source

fn into_key(self) -> Self::K

Source

fn insert(self, v: Self::V) -> &'a mut Self::V

Implementations on Foreign Types§

Source§

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

Source§

type K = K

Source§

type V = V

Source§

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

Source§

fn into_key(self) -> Self::K

Source§

fn insert(self, v: Self::V) -> &'a mut Self::V

Source§

impl<'a, K, V> VacantEntry<'a> for VacantEntry<'a, K, V>

Source§

type K = K

Source§

type V = V

Source§

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

Source§

fn into_key(self) -> Self::K

Source§

fn insert(self, v: Self::V) -> &'a mut Self::V

Source§

impl<'a, K, V> VacantEntry<'a> for VacantEntry<'a, K, V>

Source§

type K = K

Source§

type V = V

Source§

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

Source§

fn into_key(self) -> Self::K

Source§

fn insert(self, v: Self::V) -> &'a mut Self::V

Source§

impl<'a, K, V, H> VacantEntry<'a> for VacantEntry<'a, K, V, H>
where K: Ord + BorshSerialize + BorshDeserialize + Clone, V: BorshSerialize + BorshDeserialize, H: ToKey,

Source§

type K = K

Source§

type V = V

Source§

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

Source§

fn into_key(self) -> Self::K

Source§

fn insert(self, v: Self::V) -> &'a mut Self::V

Implementors§