Struct toml_edit::InlineOccupiedEntry
source · pub struct InlineOccupiedEntry<'a> { /* private fields */ }
Expand description
A view into a single occupied location in a IndexMap
.
Implementations§
source§impl<'a> InlineOccupiedEntry<'a>
impl<'a> InlineOccupiedEntry<'a>
sourcepub fn key(&self) -> &str
pub fn key(&self) -> &str
Gets a reference to the entry key
Examples
use toml_edit::Table;
let mut map = Table::new();
assert_eq!("foo", map.entry("foo").key());
sourcepub fn into_mut(self) -> &'a mut Value
pub fn into_mut(self) -> &'a mut Value
Converts the OccupiedEntry into a mutable reference to the value in the entry with a lifetime bound to the map itself