pub trait AsReport: Sealed {
// Required method
fn as_report(&self) -> Report<'_>;
// Provided methods
fn to_report_string(&self) -> String { ... }
fn to_report_string_with_backtrace(&self) -> String { ... }
fn to_report_string_pretty(&self) -> String { ... }
fn to_report_string_pretty_with_backtrace(&self) -> String { ... }
}Expand description
Required Methods§
Provided Methods§
Sourcefn to_report_string(&self) -> String
fn to_report_string(&self) -> String
Sourcefn to_report_string_with_backtrace(&self) -> String
fn to_report_string_with_backtrace(&self) -> String
Sourcefn to_report_string_pretty(&self) -> String
fn to_report_string_pretty(&self) -> String
Sourcefn to_report_string_pretty_with_backtrace(&self) -> String
fn to_report_string_pretty_with_backtrace(&self) -> String
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".