maybe_with_mut

Function maybe_with_mut 

Source
pub fn maybe_with_mut<T: 'static, U, F: FnOnce(&mut T) -> U>(
    callback: F,
) -> Option<U>
Expand description

Like with_mut, but does not initialize the data with the default value and simply returns None, if there is no value associated with the type.