swap_hash_map_entry

Function swap_hash_map_entry 

Source
pub fn swap_hash_map_entry<K, V>(entry: Entry<'_, K, V>, value: &mut Option<V>)
Expand description

Swaps the content of a hash map entry with the content of an Option.