Trait IntoErrorReport

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

Extension trait for reporting a result

Required Methods§

Source

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

Convert the result into a report.

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<'a, T> IntoErrorReport<'a, T> for Option<T>

Source§

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

Source§

impl<'a, T, E: Error + 'a> IntoErrorReport<'a, T> for Result<T, E>

Source§

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

Implementors§