Remove

Trait Remove 

Source
pub trait Remove<K>: Map {
    // Required method
    fn remove(&mut self, key: &K) -> Option<Self::Item>;
}
Expand description

Remove a key from the collection, returning the value at the key if the key was previously in the map.

Required Methods§

Source

fn remove(&mut self, key: &K) -> Option<Self::Item>

Remove a key from the collection, returning the value at the key if the key was previously in the map.

Implementations on Foreign Types§

Source§

impl<K> Remove<K> for BTreeSet<K>
where K: Ord,

Source§

fn remove(&mut self, key: &K) -> Option<()>

Source§

impl<K> Remove<K> for HashSet<K>
where K: Eq + Hash,

Source§

fn remove(&mut self, key: &K) -> Option<()>

Source§

impl<K> Remove<K> for RTree<K>

Source§

fn remove(&mut self, key: &K) -> Option<()>

Source§

impl<K, V> Remove<K> for BTreeMap<K, V>
where K: Ord,

Source§

fn remove(&mut self, key: &K) -> Option<V>

Source§

impl<K, V> Remove<K> for HashMap<K, V>
where K: Eq + Hash,

Source§

fn remove(&mut self, key: &K) -> Option<V>

Source§

impl<V> Remove<Index> for Arena<V>

Source§

fn remove(&mut self, key: &Index) -> Option<V>

Source§

impl<V, C> Remove<usize> for StableVecFacade<V, C>
where C: Core<V>,

Source§

fn remove(&mut self, index: &usize) -> Option<V>

Implementors§

Source§

impl<K: Clone + PartialEq, V: Clone + PartialEq + RTreeObject, C: Remove<K, Item = V>> Remove<K> for RTreed<K, V, C>