Struct weak_table::weak_value_hash_map::OccupiedEntry [−][src]
pub struct OccupiedEntry<'a, K: 'a, 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 copy of the strong value reference stored in the entry.
O(1) time
Replaces the value in the entry with the given value, returning the old value.
O(1) time