pub struct VacantEntry<'a, K, V, const N: usize> { /* private fields */ }
Expand description

A view into an empty slot in the underlying map

Implementations

Get the key associated with this entry

Consumes this entry to yield to key associated with it

Inserts this entry into to underlying map, yields a mutable reference to the inserted value. If the map is at capacity the value is returned instead.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.