Struct VacantEntry

struct VacantEntry<'a, K, V> { ... }

A vacant Entry. It is part of the Entry enum.

Implementations

impl<'a, K: Ord, V> VacantEntry<'a, K, V>

fn key(self: &Self) -> &K

Gets a reference to the key that would be used when inserting a value through the VacantEntry.

fn insert(self: Self, value: V) -> &'a mut V

Sets the value of the entry with the VacantEntry's key, and returns a mutable reference to it.

impl<'a, K, V> Freeze for VacantEntry<'a, K, V>

impl<'a, K, V> RefUnwindSafe for VacantEntry<'a, K, V>

impl<'a, K, V> Send for VacantEntry<'a, K, V>

impl<'a, K, V> Sync for VacantEntry<'a, K, V>

impl<'a, K, V> Unpin for VacantEntry<'a, K, V>

impl<'a, K, V> UnwindSafe for VacantEntry<'a, K, V>

impl<T> Any for VacantEntry<'a, K, V>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for VacantEntry<'a, K, V>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for VacantEntry<'a, K, V>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> From for VacantEntry<'a, K, V>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for VacantEntry<'a, K, V>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for VacantEntry<'a, K, V>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for VacantEntry<'a, K, V>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>