Type Alias Result

Source
pub type Result<T> = Result<T, Error>;
Expand description

Convenience type alias for Liquid compiler errors

Aliased Type§

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

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(Error)

Contains the error value

Trait Implementations§

Source§

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

Source§

fn trace<S>(self, trace: S) -> Result<T>
where S: Into<Cow<'static, str>>,

Add a new stack frame to the liquid_error::Error. Read more
Source§

fn trace_with<F>(self, trace: F) -> Result<T>
where F: FnOnce() -> Cow<'static, str>,

Add a new stack frame to the liquid_error::Error. Read more
Source§

fn context_key<S>(self, key: S) -> Key<T>
where S: Into<Cow<'static, str>>,

Add state the current stack frame. Read more
Source§

fn context_key_with<F>(self, key: F) -> FnKey<T, F>
where F: FnOnce() -> Cow<'static, str>,

Add state the current stack frame. Read more