pub fn chain<E: Into<Error>>(self, err: E) -> Self {
        // let desc = format!("{}: {}", pre, self.description());
        let err = err.into();
        assert!(err.cause.is_none(), "Cannot chain an error that already has a cause.");
        Error { kind: err.kind, cause: Some(Box::new(self)) }
    }
/// Creates a new error with this error as its cause.
Creates a new error with this error as its cause.
Creates a new error with this error as its cause .
pub fn chain<E: Into<Error>>(self, err: E) -> Self {
        // let desc = format!("{}: {}", pre, self.description());
        let err = err.into();
        assert!(err.cause.is_none(), "Cannot chain an error that already has a cause.");
        Error { kind: err.kind, cause: Some(Box::new(self)) }
    }
pub fn chain < E : Into < Error > > ( self , err : E ) -> Self { // let desc = format!("{}: {}", pre, self.description()); let err = err . into ( ) ; assert ! ( err cause is_none ( ) " " ) ; Error { kind : err . kind , cause : Some ( Box :: new ( self ) ) } }
Creates a new error with this error as its cause.
Creates a new error with this error as its cause .
self
err
E
self
err
E