Struct im::hashmap::OccupiedEntry [−][src]
pub struct OccupiedEntry<'a, K, V, S> where
K: 'a + Hash + Eq + Clone,
V: 'a + Clone,
S: 'a + BuildHasher, { /* fields omitted */ }
An entry for a mapping that already exists in the map.
Methods
impl<'a, K, V, S> OccupiedEntry<'a, K, V, S> where
K: 'a + Hash + Eq + Clone,
V: 'a + Clone,
S: 'a + BuildHasher,
[src]
impl<'a, K, V, S> OccupiedEntry<'a, K, V, S> where
K: 'a + Hash + Eq + Clone,
V: 'a + Clone,
S: 'a + BuildHasher,
pub fn key(&self) -> &K
[src]
pub fn key(&self) -> &K
Get the key for this entry.
pub fn remove_entry(self) -> (K, V)
[src]
pub fn remove_entry(self) -> (K, V)
Remove this entry from the map and return the removed mapping.
pub fn get(&self) -> &V
[src]
pub fn get(&self) -> &V
Get the current value.
pub fn get_mut(&mut self) -> &mut V
[src]
pub fn get_mut(&mut self) -> &mut V
Get a mutable reference to the current value.
pub fn into_mut(self) -> &'a mut V
[src]
pub fn into_mut(self) -> &'a mut V
Convert this entry into a mutable reference.
pub fn insert(&mut self, value: V) -> V
[src]
pub fn insert(&mut self, value: V) -> V
Overwrite the current value.
pub fn remove(self) -> V
[src]
pub fn remove(self) -> V
Remove this entry from the map and return the removed value.