Trait tap::TapOptionOps
source · pub trait TapOptionOps<T> {
fn tap_some<R, F: FnOnce(&mut T) -> R>(self, f: F) -> Self;
fn tap_none<R, F: FnOnce() -> R>(self, f: F) -> Self;
}
Expand description
Tap operations for Option
.
pub trait TapOptionOps<T> {
fn tap_some<R, F: FnOnce(&mut T) -> R>(self, f: F) -> Self;
fn tap_none<R, F: FnOnce() -> R>(self, f: F) -> Self;
}
Tap operations for Option
.