[][src]Trait tap::TapResultOps

pub trait TapResultOps<T, E> {
    fn tap_ok<R, F: FnOnce(&mut T) -> R>(self, f: F) -> Self;
fn tap_err<R, F: FnOnce(&mut E) -> R>(self, f: F) -> Self; }

Tap operations for Result.

Required methods

Executes a closure if the value is Result::Ok(T).

Executes a closure if the value is Result::Err(E).

Loading content...

Implementations on Foreign Types

impl<T, E> TapResultOps<T, E> for Result<T, E>
[src]

Loading content...

Implementors

Loading content...