Struct weak_table::weak_weak_hash_map::OccupiedEntry [−][src]
pub struct OccupiedEntry<'a, K: 'a + WeakKey, V: 'a + WeakElement> { /* fields omitted */ }
Expand description
An occupied entry, which can be removed or viewed.
Implementations
Takes ownership of the key and value from the map.
expected O(1) time; worst-case O(p) time
Gets a clone of the reference to the value in the entry.
O(1) time
Replaces the value in the entry with the given value.
O(1) time