Struct btreemultimap::OccupiedEntry [−][src]
pub struct OccupiedEntry<'a, K: 'a, V: 'a> { /* fields omitted */ }
A view into a single occupied location in a BTreeMultiMap.
Implementations
impl<'a, K: 'a + Ord, V: 'a> OccupiedEntry<'a, K, V>
[src]
impl<'a, K: 'a + Ord, V: 'a> OccupiedEntry<'a, K, V>
[src]pub fn get(&self) -> &V
[src]
Gets a reference to the first item in value in the vector corresponding to entry.
pub fn get_vec(&self) -> &Vec<V>
[src]
Gets a reference to the values (vector) corresponding to entry.
pub fn get_mut(&mut self) -> &mut V
[src]
Gets a mut reference to the first item in value in the vector corresponding to entry.
pub fn get_vec_mut(&mut self) -> &mut Vec<V>
[src]
Gets a mut reference to the values (vector) corresponding to entry.
pub fn into_mut(self) -> &'a mut V
[src]
Converts the OccupiedEntry into a mutable reference to the first item in value in the entry with a lifetime bound to the map itself
pub fn into_vec_mut(self) -> &'a mut Vec<V>
[src]
Converts the OccupiedEntry into a mutable reference to the values (vector) in the entry with a lifetime bound to the map itself
pub fn insert(&mut self, value: V)
[src]
Inserts a new value onto the vector of the entry.
pub fn insert_vec(&mut self, values: Vec<V>)
[src]
Extends the existing vector with the specified values.
pub fn remove(self) -> Vec<V>
[src]
Takes the values (vector) out of the entry, and returns it
Auto Trait Implementations
impl<'a, K, V> RefUnwindSafe for OccupiedEntry<'a, K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<'a, K, V> RefUnwindSafe for OccupiedEntry<'a, K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<'a, K, V> Send for OccupiedEntry<'a, K, V> where
K: Send,
V: Send,
impl<'a, K, V> Send for OccupiedEntry<'a, K, V> where
K: Send,
V: Send,
impl<'a, K, V> Sync for OccupiedEntry<'a, K, V> where
K: Sync,
V: Sync,
impl<'a, K, V> Sync for OccupiedEntry<'a, K, V> where
K: Sync,
V: Sync,
impl<'a, K, V> Unpin for OccupiedEntry<'a, K, V>
impl<'a, K, V> Unpin for OccupiedEntry<'a, K, V>
impl<'a, K, V> !UnwindSafe for OccupiedEntry<'a, K, V>
impl<'a, K, V> !UnwindSafe for OccupiedEntry<'a, K, V>