[][src]Struct multimap::OccupiedEntry

pub struct OccupiedEntry<'a, K: 'a, V: 'a> { /* fields omitted */ }

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

impl<'a, K, V> Sync for OccupiedEntry<'a, K, V> where
    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]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]