Skip to main content

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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

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§