[−][src]Trait tap::TapOptionOps
Tap operations for Option.
Required methods
fn tap_some<R, F: FnOnce(&mut T) -> R>(self, f: F) -> Self
Executes a closure if the value is Option::Some(T).
fn tap_none<R, F: FnOnce() -> R>(self, f: F) -> Self
Executes a closure if the value is Option::None.
Implementations on Foreign Types
impl<T> TapOptionOps<T> for Option<T>[src]
impl<T> TapOptionOps<T> for Option<T>fn tap_some<R, F: FnOnce(&mut T) -> R>(self, f: F) -> Self[src]
fn tap_some<R, F: FnOnce(&mut T) -> R>(self, f: F) -> Selffn tap_none<R, F: FnOnce() -> R>(self, f: F) -> Self[src]
fn tap_none<R, F: FnOnce() -> R>(self, f: F) -> Self