Method lrs::option::Option::take

Replaces the value by None and returns the original.

Syntax

impl<T> Option<T> {
    fn take(&mut self) -> Option<T>
}

Return value

Returns the original value.