pub trait ErrorChainExt {
// Required methods
fn chain(&self) -> DisplayErrorChain<&Self>;
fn into_chain(self) -> DisplayErrorChain<Self>
where Self: Sized;
}Expand description
An extension trait for Error types to display their sources in a chain.
Required Methods§
Sourcefn chain(&self) -> DisplayErrorChain<&Self>
fn chain(&self) -> DisplayErrorChain<&Self>
Provides an fmt::Display implementation for an error as a chain.
Sourcefn into_chain(self) -> DisplayErrorChain<Self>where
Self: Sized,
fn into_chain(self) -> DisplayErrorChain<Self>where
Self: Sized,
Same as chain, but consumes self.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".