Struct toml_edit::InlineOccupiedEntry
source · [−]pub struct InlineOccupiedEntry<'a> { /* private fields */ }
Expand description
A view into a single occupied location in a IndexMap
.
Implementations
sourceimpl<'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> 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more