pub trait IntoReport: Sized {
    type Ok;
    type Err;

    // Required method
    fn into_report(self) -> Result<Self::Ok, Self::Err>;
}
Expand description

Extends Result to convert the Err variant to a Report

Required Associated Types§

source

type Ok

Type of the Ok value in the Result

source

type Err

Type of the resulting Err variant wrapped inside a Report<E>.

Required Methods§

source

fn into_report(self) -> Result<Self::Ok, Self::Err>

Converts the Err variant of the Result to a Report

Implementations on Foreign Types§

source§

impl<T, E> IntoReport for Result<T, E>where
Report<E>: From<E>,

§

type Err = E

§

type Ok = T

source§

fn into_report(self) -> Result<T, E>

Implementors§