[−][src]Struct multimap::OccupiedEntry
A view into a single occupied location in a MultiMap.
Methods
impl<'a, K: 'a, 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> Send for OccupiedEntry<'a, K, V> where
K: Send,
V: Send,
K: Send,
V: Send,
impl<'a, K, V> Sync for OccupiedEntry<'a, K, V> where
K: Sync,
V: Sync,
K: Sync,
V: Sync,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,