Skip to main content

ChainErr

Trait ChainErr 

Source
pub trait ChainErr<T> {
    // Required method
    fn chain_err<F, EK>(self, callback: F) -> Result<T, Error>
       where F: FnOnce() -> EK,
             EK: Into<ErrorKind>;
}
Expand description

Alias for Result<T, RustacheError>

Required Methods§

Source

fn chain_err<F, EK>(self, callback: F) -> Result<T, Error>
where F: FnOnce() -> EK, EK: Into<ErrorKind>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T, E> ChainErr<T> for Result<T, E>
where E: Error + Send + 'static,

Source§

fn chain_err<F, EK>(self, callback: F) -> Result<T, Error>
where F: FnOnce() -> EK, EK: Into<ErrorKind>,

Implementors§