pub fn downcast<E: Display + Debug + Send + Sync + 'static>(self) -> Result<E, Exception> {
        if let Some(error) = self.downcast_ref::<E>() {
            unsafe {
                let error = ptr::read(error);
                drop(ptr::read(&self.inner));
                mem::forget(self);
                Ok(error)
            }
        } else {
            Err(self)
        }
    }
/// Attempt to downcast the exception to a concrete type.
Attempt to downcast the exception to a concrete type.
Attempt to downcast the exception to a concrete type .
pub fn downcast<E: Display + Debug + Send + Sync + 'static>(self) -> Result<E, Exception> {
        if let Some(error) = self.downcast_ref::<E>() {
            unsafe {
                let error = ptr::read(error);
                drop(ptr::read(&self.inner));
                mem::forget(self);
                Ok(error)
            }
        } else {
            Err(self)
        }
    }
pub fn downcast < E : Display + Debug + Send + Sync + ' static > ( self ) -> Result < E , Exception > { if let Some ( error ) = self . downcast_ref :: < E > ( ) { unsafe { let error = ptr :: read ( error ) ; drop ( ptr :: read ( & self . inner ) ) ; mem :: forget ( self ) ; Ok ( error ) } } else { Err ( self ) } }
Attempt to downcast the exception to a concrete type.
Attempt to downcast the exception to a concrete type .
self