Trait liquid::compiler::ResultLiquidChainExt
[−]
[src]
pub trait ResultLiquidChainExt<T, E> {
fn chain(self, msg: &'static str) -> Result<T>;
fn chain_with<F>(self, msg: F) -> Result<T>
where
F: FnOnce() -> String;
}Result extension methods for adapting third party errors to Error.
Required Methods
fn chain(self, msg: &'static str) -> Result<T>
Create an Error with E as the cause.
fn chain_with<F>(self, msg: F) -> Result<T> where
F: FnOnce() -> String,
F: FnOnce() -> String,
Create an Error with E as the cause.
Implementations on Foreign Types
impl<T, E> ResultLiquidChainExt<T, E> for Result<T, E> where
E: Error + Send + Sync + 'static, [src]
E: Error + Send + Sync + 'static,
Result convenience extension methods for working with Error.