Struct type_map::concurrent::OccupiedEntry [−][src]
pub struct OccupiedEntry<'a, T> { /* fields omitted */ }
Expand description
A view into an occupied entry in a TypeMap
.
Implementations
Converts the OccupiedEntry
into a mutable reference to the value in the entry
with a lifetime bound to the map itself.
Sets the value of the entry, and returns the entry’s old value.