Enum weak_table::weak_value_hash_map::Entry[][src]

pub enum Entry<'a, K: 'a, V: 'a + WeakElement> {
    Occupied(OccupiedEntry<'a, K, V>),
    Vacant(VacantEntry<'a, K, V>),
}
Expand description

Represents an entry in the table which may be occupied or vacant.

Variants

Occupied(OccupiedEntry<'a, K, V>)

Tuple Fields

0: OccupiedEntry<'a, K, V>

Vacant(VacantEntry<'a, K, V>)

Tuple Fields

0: VacantEntry<'a, K, V>

Implementations

Ensures a value is in the entry by inserting a default value if empty.

O(1) time

Ensures a value is in the entry by inserting the result of the default function if empty.

O(1) time

Returns a reference to this entry’s key.

O(1) 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.