Trait ResultExt

Source
pub trait ResultExt<T, E>: Sealed {
    // Required method
    fn inspect_err_(self, f: impl FnOnce(&E)) -> Self;
}

Required Methods§

Source

fn inspect_err_(self, f: impl FnOnce(&E)) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T, E> ResultExt<T, E> for Result<T, E>

Source§

fn inspect_err_(self, f: impl FnOnce(&E)) -> Self

Implementors§