pub fn into_downcast<T: std::error::Error + 'static>(self) -> std::result::Result<T, Self> {
        if self.downcast_ref::<T>().is_none() {
            return Err(self);
        }
        // Unwrapping is ok here since we already check above that the downcast will work
        Ok(*self.into_inner()?.downcast().expect("failed to unwrap downcast"))
    }
/// Consumes the error attempting to downcast the inner error as the type provided
///
/// Returns `Err(self)` if the downcast is not possible
Consumes the error attempting to downcast the inner error as the type provided
Returns `Err(self)` if the downcast is not possible
Consumes the error attempting to downcast the inner error as the type provided Returns ` Err ( self ) ` if the downcast is not possible
pub fn into_downcast<T: std::error::Error + 'static>(self) -> std::result::Result<T, Self> {
        if self.downcast_ref::<T>().is_none() {
            return Err(self);
        }
        // Unwrapping is ok here since we already check above that the downcast will work
        Ok(*self.into_inner()?.downcast().expect("failed to unwrap downcast"))
    }
pub fn into_downcast < T : std :: error :: Error + ' static > ( self ) -> std :: result :: Result < T , Self > { if self . downcast_ref :: < T > ( ) . is_none ( ) { return Err ( self ) ; } // Unwrapping is ok here since we already check above that the downcast will work Ok ( * self . into_inner ( ) ? . downcast ( ) . expect ( " " ) ) }
Consumes the error attempting to downcast the inner error as the type provided
Returns `Err(self)` if the downcast is not possible
Consumes the error attempting to downcast the inner error as the type provided Returns ` Err ( self ) ` if the downcast is not possible
self