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>),
}

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

Variants

Methods

impl<'a, K, V: WeakElement> Entry<'a, K, V>
[src]

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

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

Returns a reference to this entry's key.

Trait Implementations

impl<'a, K: Debug, V: WeakElement> Debug for Entry<'a, K, V> where
    V::Strong: Debug
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a, K, V> Send for Entry<'a, K, V> where
    K: Send,
    V: Send,
    <V as WeakElement>::Strong: Send

impl<'a, K, V> Sync for Entry<'a, K, V> where
    K: Sync,
    V: Sync,
    <V as WeakElement>::Strong: Sync