Skip to main content

IntoErr

Trait IntoErr 

Source
pub trait IntoErr<T, FA, FR> {
    // Required methods
    fn get(self) -> T;
    fn get_map(self, m: impl Fn(FA) -> FR) -> T;
}

Required Methods§

Source

fn get(self) -> T

Source

fn get_map(self, m: impl Fn(FA) -> FR) -> 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.

Implementors§

Source§

impl<'a, T, TE, TE2> IntoErr<Result<T, AstError<'a, TE2>>, TE, TE2> for AstResult<'a, T, TE>