pub trait ErrorDown {
// Required methods
fn is_chain<T: 'static + Display + Debug>(&self) -> bool;
fn downcast_chain_ref<T: 'static + Display + Debug>(
&self,
) -> Option<&Error<T>>;
fn downcast_chain_mut<T: 'static + Display + Debug>(
&mut self,
) -> Option<&mut Error<T>>;
fn downcast_inner_ref<T: 'static + StdError>(&self) -> Option<&T>;
fn downcast_inner_mut<T: 'static + StdError>(&mut self) -> Option<&mut T>;
}Expand description
Convenience trait to hide the Error<T> implementation internals
Required Methods§
Sourcefn downcast_chain_ref<T: 'static + Display + Debug>(&self) -> Option<&Error<T>>
fn downcast_chain_ref<T: 'static + Display + Debug>(&self) -> Option<&Error<T>>
Downcast to a reference of Error<T>
Sourcefn downcast_chain_mut<T: 'static + Display + Debug>(
&mut self,
) -> Option<&mut Error<T>>
fn downcast_chain_mut<T: 'static + Display + Debug>( &mut self, ) -> Option<&mut Error<T>>
Downcast to a mutable reference of Error<T>
Sourcefn downcast_inner_ref<T: 'static + StdError>(&self) -> Option<&T>
fn downcast_inner_ref<T: 'static + StdError>(&self) -> Option<&T>
Downcast to T of Error<T>
Sourcefn downcast_inner_mut<T: 'static + StdError>(&mut self) -> Option<&mut T>
fn downcast_inner_mut<T: 'static + StdError>(&mut self) -> Option<&mut T>
Downcast to T mutable reference of Error<T>
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.