Trait eclectic::map::Remove [] [src]

pub trait Remove<Q: ?Sized = Self::Key>: Get<Q> + Remove {
    fn remove(&mut self, key: &Q) -> Option<Self::Value>;
}

A map that supports removals using keys of type &Q.

Required Methods

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

Removes the key in the map that is equivalent to the given key and returns its value.

Returns None if the map contains no such key.

Implementors