swap

Function swap 

Source
pub fn swap<T: 'static>(value: T) -> Option<T>
Expand description

Swaps the value associated with type T with the given value, returns the old one.