Trait std::collections::hash_map::Recover [] [src]

pub trait Recover<Q: ?Sized> {
    type Key;
    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>;
}

Associated Types

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>

Implementors