Trait display_error_chain::ErrorChainExt
source · 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
.
Object Safety§
This trait is not object safe.