Trait tap::TapBooleanOps

source ·
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;
}
Expand description

Tap operations for bool.

Required Methods§

Executes a closure if the value is true.

Executes a closure if the value is false.

Implementations on Foreign Types§

Implementors§