trait Recover<Q: ?Sized> {
    type Key;

    // Required methods
    fn get(&self, key: &Q) -> Option<&Self::Key>;
    fn take(&mut self, key: &Q) -> Option<Self::Key>;
    fn replace(&mut self, key: Self::Key) -> Option<Self::Key>;
}

Required Associated Types§

Required Methods§

source

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

source

fn take(&mut self, key: &Q) -> Option<Self::Key>

source

fn replace(&mut self, key: Self::Key) -> Option<Self::Key>

Implementors§

source§

impl<K, Q, A: Allocator + Clone> Recover<Q> for BTreeMap<K, SetValZST, A>where K: Borrow<Q> + Ord, Q: Ord + ?Sized,

§

type Key = K