pub struct VacantEntry<'a, K, V, A = Global>{ /* private fields */ }
Expand description
A view into a vacant entry in a BTreeMap
.
It is part of the Entry
enum.
Implementations§
source§impl<'a, K, V, A> VacantEntry<'a, K, V, A>
impl<'a, K, V, A> VacantEntry<'a, K, V, A>
1.10.0 · sourcepub fn key(&self) -> &K
pub fn key(&self) -> &K
Gets a reference to the key that would be used when inserting a value through the VacantEntry.
§Examples
Trait Implementations§
Auto Trait Implementations§
impl<'a, K, V, A> Freeze for VacantEntry<'a, K, V, A>
impl<'a, K, V, A> RefUnwindSafe for VacantEntry<'a, K, V, A>
impl<'a, K, V, A> Send for VacantEntry<'a, K, V, A>
impl<'a, K, V, A> Sync for VacantEntry<'a, K, V, A>
impl<'a, K, V, A> Unpin for VacantEntry<'a, K, V, A>
impl<'a, K, V, A = Global> !UnwindSafe for VacantEntry<'a, K, V, 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