Trait mentat_core::util::ResultEffect [] [src]

pub trait ResultEffect<T> {
    fn when_ok<F: FnOnce()>(self, f: F) -> Self;
fn when_err<F: FnOnce()>(self, f: F) -> Self; }

Side-effect chaining on Result.

Required Methods

Invoke f if self is Ok, returning self.

Invoke f if self is Err, returning self.

Implementations on Foreign Types

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

[src]

[src]

Implementors