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
Auto Trait Implementations§
impl<'a> Freeze for InlineOccupiedEntry<'a>
impl<'a> RefUnwindSafe for InlineOccupiedEntry<'a>
impl<'a> Send for InlineOccupiedEntry<'a>
impl<'a> Sync for InlineOccupiedEntry<'a>
impl<'a> Unpin for InlineOccupiedEntry<'a>
impl<'a> !UnwindSafe for InlineOccupiedEntry<'a>
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