pub trait WithSource {
// Required method
fn with_source<E: Source>(self, source: E) -> Self;
}
Expand description
Trait for adding a source to an error type.
Required Methods§
Sourcefn with_source<E: Source>(self, source: E) -> Self
fn with_source<E: Source>(self, source: E) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.