pub struct OccupiedEntry<'a, V> { /* private fields */ }
Expand description
A view into an occupied entry in a XmlMap
.
It is part of the Entry
enum.
Implementations§
Source§impl<'a, V> OccupiedEntry<'a, V>
impl<'a, V> OccupiedEntry<'a, V>
Sourcepub fn insert(&mut self, value: V) -> V
pub fn insert(&mut self, value: V) -> V
Sets the value of the entry with the OccupiedEntry
’s key, and
returns the entry’s old value.
Sourcepub fn into_mut(self) -> &'a mut V
pub fn into_mut(self) -> &'a mut V
Converts the entry into a mutable reference to its value.
If you need multiple references to the OccupiedEntry
, see
get_mut
.
Sourcepub fn remove_entry(self) -> ((Namespace, NcName), V)
pub fn remove_entry(self) -> ((Namespace, NcName), V)
Takes ownership of the attribute namespace, name and value from the map.
Auto Trait Implementations§
impl<'a, V> Freeze for OccupiedEntry<'a, V>
impl<'a, V> RefUnwindSafe for OccupiedEntry<'a, V>where
V: RefUnwindSafe,
impl<'a, V> Send for OccupiedEntry<'a, V>where
V: Send,
impl<'a, V> Sync for OccupiedEntry<'a, V>where
V: Sync,
impl<'a, V> Unpin for OccupiedEntry<'a, V>
impl<'a, V> !UnwindSafe for OccupiedEntry<'a, V>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more