pub fn downcast_ref<E: Display + Debug + Send + Sync + 'static>(&self) -> Option<&E> {
        if self.is::<E>() {
            unsafe { Some(&*(self.inner.error() as *const dyn Error as *const E)) }
        } else { None }
    }
/// Downcast this exception by reference.
Downcast this exception by reference.
Downcast this exception by reference .
pub fn downcast_ref<E: Display + Debug + Send + Sync + 'static>(&self) -> Option<&E> {
        if self.is::<E>() {
            unsafe { Some(&*(self.inner.error() as *const dyn Error as *const E)) }
        } else { None }
    }
pub fn downcast_ref < E : Display + Debug + Send + Sync + ' static > ( & self ) -> Option < & E > { if self . is :: < E > ( ) { unsafe { Some ( & * ( self . inner . error ( ) as * const dyn Error as * const E ) ) } } else { None } }
Downcast this exception by reference.
Downcast this exception by reference .
&self