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§
Sourcefn into_report(self) -> Result<T, Report<'static>>
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".