maybe_with

Function maybe_with 

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

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