[][src]Trait liquid_error::ResultLiquidChainExt

pub trait ResultLiquidChainExt<T> {
#[must_use]
    fn chain<S: Into<Cow<'static, str>>>(self, msg: S) -> Result<T>;
#[must_use] fn chain_with<F>(self, msg: F) -> Result<T>
    where
        F: FnOnce() -> Cow<'static, str>
; }

Result extension methods for adapting third party errors to Error.

Required methods

#[must_use] fn chain<S: Into<Cow<'static, str>>>(self, msg: S) -> Result<T>

Create an Error with E as the cause.

#[must_use] fn chain_with<F>(self, msg: F) -> Result<T> where
    F: FnOnce() -> Cow<'static, str>, 

Create an Error with E as the cause.

Loading content...

Implementations on Foreign Types

impl<T, E> ResultLiquidChainExt<T> for Result<T, E> where
    E: ErrorClone
[src]

Loading content...

Implementors

Loading content...