Struct weak_table::weak_key_hash_map::OccupiedEntry [−][src]
pub struct OccupiedEntry<'a, K: 'a + WeakKey, V: 'a>(_);
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 mutable reference to the value in the entry.
O(1) time
Turns the entry into a mutable reference to the value borrowed from the map.
O(1) time
Replaces the value in the entry with the given value.
O(1) time