Struct serde_yaml::mapping::OccupiedEntry
source · pub struct OccupiedEntry<'a> { /* private fields */ }
Implementations§
source§impl<'a> OccupiedEntry<'a>
impl<'a> OccupiedEntry<'a>
sourcepub fn into_mut(self) -> &'a mut Value
pub fn into_mut(self) -> &'a mut Value
Converts the entry into a mutable reference to its value.
sourcepub fn insert(&mut self, value: Value) -> Value
pub fn insert(&mut self, value: Value) -> Value
Sets the value of the entry with the OccupiedEntry
’s key, and returns
the entry’s old value.
sourcepub fn remove_entry(self) -> (Value, Value)
pub fn remove_entry(self) -> (Value, Value)
Remove and return the key, value pair stored in the map for this entry.