UnwrapAnd

Trait UnwrapAnd 

Source
pub trait UnwrapAnd<T, E> {
    // Required method
    fn unwrap_and<F: Fn(E) -> i32>(self, err_fn: F) -> T;
}

Required Methods§

Source

fn unwrap_and<F: Fn(E) -> i32>(self, err_fn: F) -> T

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> UnwrapAnd<T, E> for Result<T, E>

Source§

fn unwrap_and<F: Fn(E) -> i32>(self, err_fn: F) -> T

Implementors§