Type Alias loose_liquid_core::error::Result

source ·
pub type Result<T, E = Error> = Result<T, E>;
Expand description

Convenience type alias for Liquid compiler errors

Aliased Type§

enum Result<T, E = Error> {
    Ok(T),
    Err(E),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(E)

Contains the error value

Trait Implementations§

source§

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

source§

fn chain<S: Into<KString>>(self, msg: S) -> Result<T>

Create an Error with E as the cause.
source§

fn chain_with<F>(self, msg: F) -> Result<T>where F: FnOnce() -> KString,

Create an Error with E as the cause.
source§

impl<T> ResultLiquidExt<T> for Result<T>

source§

fn trace<S>(self, trace: S) -> Result<T>where S: Into<KString>,

Add a new stack frame to the crate::error::Error. Read more
source§

fn trace_with<F>(self, trace: F) -> Result<T>where F: FnOnce() -> KString,

Add a new stack frame to the crate::error::Error. Read more
source§

fn context_key<S>(self, key: S) -> Key<T>where S: Into<KString>,

Add state the current stack frame. Read more
source§

fn context_key_with<F>(self, key: F) -> FnKey<T, F>where F: FnOnce() -> KString,

Add state the current stack frame. Read more
source§

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

source§

fn lossy_chain<S: Into<KString>>(self, msg: S) -> Result<T>

Create an Error ignoring E as the cause. Read more
source§

fn lossy_chain_with<F>(self, msg: F) -> Result<T>where F: FnOnce() -> KString,

Create an Error ignoring E as the cause. Read more
source§

fn replace<S: Into<KString>>(self, msg: S) -> Result<T>

Create an Error ignoring E as the cause. Read more
source§

fn replace_with<F>(self, msg: F) -> Result<T>where F: FnOnce() -> KString,

Create an Error ignoring E as the cause. Read more