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.
pub trait Remove<K>: Map {
// Required method
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.