IntoReport

Trait IntoReport 

Source
pub trait IntoReport<T> {
    // Required method
    fn into_report(self) -> Result<T, Report<'static>>;
}
Expand description

Trait for converting something into an error report.

Required Methods§

Source

fn into_report(self) -> Result<T, Report<'static>>

Convert self into an error report if self is an error.

Implementations on Foreign Types§

Source§

impl<T, E: Error + 'static> IntoReport<T> for Result<T, E>

Source§

fn into_report(self) -> Result<T, Report<'static>>

Implementors§