[][src]Trait tap::TapBooleanOps

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

Executes a closure if the value is true.

Executes a closure if the value is false.

Loading content...

Implementations on Foreign Types

impl TapBooleanOps for bool
[src]

Loading content...

Implementors

Loading content...