pub struct VacantEntry<'a, K: AsYaml> { /* private fields */ }Expand description
A view into a vacant entry in a Mapping.
Implementations§
Source§impl<'a, K: AsYaml> VacantEntry<'a, K>
impl<'a, K: AsYaml> VacantEntry<'a, K>
Sourcepub fn into_key(self) -> K
pub fn into_key(self) -> K
Consume the VacantEntry and return the key that would have been
inserted.
Trait Implementations§
Auto Trait Implementations§
impl<'a, K> !RefUnwindSafe for VacantEntry<'a, K>
impl<'a, K> !Send for VacantEntry<'a, K>
impl<'a, K> !Sync for VacantEntry<'a, K>
impl<'a, K> !UnwindSafe for VacantEntry<'a, K>
impl<'a, K> Freeze for VacantEntry<'a, K>where
K: Freeze,
impl<'a, K> Unpin for VacantEntry<'a, K>where
K: Unpin,
impl<'a, K> UnsafeUnpin for VacantEntry<'a, K>where
K: UnsafeUnpin,
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