Enum weak_table::weak_key_hash_map::Entry [] [src]

pub enum Entry<'a, K: 'a + WeakKey, V: 'a> {
    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: WeakKey, V> Entry<'a, K, V>
[src]

[src]

Ensures a value is in the entry by inserting a default value if empty, and returns a mutable reference to the value in the entry.

[src]

Ensures a value is in the entry by inserting the result of the default function if empty, and returns a mutable reference to the value in the entry.

[src]

Returns a reference to this entry's key.

Trait Implementations

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

[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,
    <K as WeakElement>::Strong: Send

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