Trait tap::TapBooleanOps
[−]
[src]
pub trait TapBooleanOps { fn tap_true<R, F: FnOnce(&mut bool) -> R>(self, f: F) -> Self; fn tap_false<R, F: FnOnce(&mut bool) -> R>(self, f: F) -> Self; }
Tap operations for bool
.
Required Methods
fn tap_true<R, F: FnOnce(&mut bool) -> R>(self, f: F) -> Self
Executes a closure if the value is Result::Ok(T)
.
fn tap_false<R, F: FnOnce(&mut bool) -> R>(self, f: F) -> Self
Executes a closure if the value is Result::Err(E)
.
Implementors
impl TapBooleanOps for bool