pub trait AsReport: Sealed {
    // Required method
    fn as_report(&self) -> Report<'_>;
}
Expand description

Extension trait for std::error::Error that provides a Report that formats the error and its sources in a cleaned-up way.

Required Methods§

source

fn as_report(&self) -> Report<'_>

Returns a Report that formats the error and its sources in a cleaned-up way.

Implementors§

source§

impl<T: Error> AsReport for T