StackedErrorDowncast

Trait StackedErrorDowncast 

Source
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§

Source

fn get_err(&self) -> &(impl Display + Send + Sync + 'static)

Source

fn get_location(&self) -> Option<&'static Location<'static>>

Source

fn downcast_ref<E>(&self) -> Option<&E>
where E: Display + Send + Sync + 'static,

Source

fn downcast_mut<E>(&mut self) -> Option<&mut E>
where E: Display + Send + Sync + 'static,

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.

Implementors§