pub trait AsErrorSource {
// Required method
fn as_error_source(&self) -> &(dyn Error + 'static);
}Expand description
Normalize any source-error value to a &(dyn Error + 'static).
Required Methods§
Sourcefn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
Borrow this value as a &(dyn Error + 'static).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".