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

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

    fn report(self) -> Result<Self::Ok, Self::Err> { ... }
}
Expand description

Extends Result to convert the Err variant to a Report

Required Associated Types

Type of the Ok value in the Result

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

Required Methods

Converts the Err variant of the Result to a Report

Provided Methods

👎Deprecated since 0.2.0: Use IntoReport::into_report instead

Implementations on Foreign Types

Implementors