Struct weak_table::weak_key_hash_map::VacantEntry[][src]

pub struct VacantEntry<'a, K: 'a + WeakKey, V: 'a>(_);
Expand description

A vacant entry, which can be inserted in or viewed.

Implementations

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

O(1) time

Returns ownership of the key.

O(1) time

Inserts the key and value into the map and return a mutable reference to the value.

expected O(1) time; worst-case O(p) time

Trait Implementations

Formats the value using the given formatter. Read more

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

Performs the conversion.

Performs the conversion.

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.