Struct anymap::OccupiedEntry
[−]
[src]
pub struct OccupiedEntry<'a, A: ?Sized + UncheckedAnyExt, V: 'a> { /* fields omitted */ }
A view into a single occupied location in an Map.
Methods
impl<'a, A: ?Sized + UncheckedAnyExt, V: IntoBox<A>> OccupiedEntry<'a, A, V>[src]
impl<'a, A: ?Sized + UncheckedAnyExt, V: IntoBox<A>> OccupiedEntry<'a, A, V>pub fn get(&self) -> &V[src]
pub fn get(&self) -> &VGets a reference to the value in the entry
pub fn get_mut(&mut self) -> &mut V[src]
pub fn get_mut(&mut self) -> &mut VGets a mutable reference to the value in the entry
pub fn into_mut(self) -> &'a mut V[src]
pub fn into_mut(self) -> &'a mut VConverts the OccupiedEntry into a mutable reference to the value in the entry with a lifetime bound to the collection itself
pub fn insert(&mut self, value: V) -> V[src]
pub fn insert(&mut self, value: V) -> VSets the value of the entry, and returns the entry's old value
pub fn remove(self) -> V[src]
pub fn remove(self) -> VTakes the value out of the entry, and returns it
Trait Implementations
Auto Trait Implementations
impl<'a, A, V> !Send for OccupiedEntry<'a, A, V>
impl<'a, A, V> !Send for OccupiedEntry<'a, A, V>impl<'a, A, V> !Sync for OccupiedEntry<'a, A, V>
impl<'a, A, V> !Sync for OccupiedEntry<'a, A, V>