[][src]Trait liquid_value::error::ResultLiquidChainExt

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

Result extension methods for adapting third party errors to Error.

Required methods

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

Create an Error with E as the cause.

#[must_use] fn chain_with<F>(self, msg: F) -> Result<T, Error> 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...