pub trait StackedErrorDowncast: StackableErrorTrait + Sized {
// Required methods
fn get_err(&self) -> &(impl Display + Send + Sync + 'static);
fn get_location(&self) -> Option<&'static Location<'static>>;
fn downcast_ref<E>(&self) -> Option<&E>
where E: Display + Send + Sync + 'static;
fn downcast_mut<E>(&mut self) -> Option<&mut E>
where E: Display + Send + Sync + 'static;
}Required Methods§
fn get_err(&self) -> &(impl Display + Send + Sync + 'static)
fn get_location(&self) -> Option<&'static Location<'static>>
fn downcast_ref<E>(&self) -> Option<&E>
fn downcast_mut<E>(&mut self) -> Option<&mut E>
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.