Struct btreemultimap::OccupiedEntry
source · pub struct OccupiedEntry<'a, K: 'a, V: 'a> { /* private fields */ }
Expand description
A view into a single occupied location in a BTreeMultiMap.
Implementations§
source§impl<'a, K: 'a + Ord, V: 'a> OccupiedEntry<'a, K, V>
impl<'a, K: 'a + Ord, V: 'a> OccupiedEntry<'a, K, V>
sourcepub fn get(&self) -> &V
pub fn get(&self) -> &V
Gets a reference to the first item in value in the vector corresponding to entry.
sourcepub fn get_vec(&self) -> &Vec<V>
pub fn get_vec(&self) -> &Vec<V>
Gets a reference to the values (vector) corresponding to entry.
sourcepub fn get_mut(&mut self) -> &mut V
pub fn get_mut(&mut self) -> &mut V
Gets a mut reference to the first item in value in the vector corresponding to entry.
sourcepub fn get_vec_mut(&mut self) -> &mut Vec<V>
pub fn get_vec_mut(&mut self) -> &mut Vec<V>
Gets a mut reference to the values (vector) corresponding to entry.
sourcepub fn into_mut(self) -> &'a mut V
pub fn into_mut(self) -> &'a mut V
Converts the OccupiedEntry into a mutable reference to the first item in value in the entry with a lifetime bound to the map itself
sourcepub fn into_vec_mut(self) -> &'a mut Vec<V>
pub fn into_vec_mut(self) -> &'a mut Vec<V>
Converts the OccupiedEntry into a mutable reference to the values (vector) in the entry with a lifetime bound to the map itself
sourcepub fn insert_vec(&mut self, values: Vec<V>)
pub fn insert_vec(&mut self, values: Vec<V>)
Extends the existing vector with the specified values.