on_ok

Function on_ok 

Source
pub fn on_ok<F, T, E>(f: F) -> impl Fn(Result<T, E>)
where F: Fn(T) + 'static,
Expand description

Calls the input function only if the returned functions result is ok.