Trait liquid_interpreter::value::error::ResultLiquidExt
source · pub trait ResultLiquidExt<T> {
fn trace<S>(self, trace: S) -> Result<T, Error>
where
S: Into<Cow<'static, str>>;
fn trace_with<F>(self, trace: F) -> Result<T, Error>
where
F: FnOnce() -> String;
fn context<K, V>(self, key: K, value: V) -> Result<T, Error>
where
K: Into<Cow<'static, str>>,
V: Into<Cow<'static, str>>;
fn context_with<F>(self, context: F) -> Result<T, Error>
where
F: FnOnce() -> (String, String);
}
Expand description
Add context to a liquid_error::Error
.
Required Methods§
sourcefn trace<S>(self, trace: S) -> Result<T, Error>where
S: Into<Cow<'static, str>>,
fn trace<S>(self, trace: S) -> Result<T, Error>where
S: Into<Cow<'static, str>>,
Add a new stack frame to the liquid_error::Error
.
sourcefn trace_with<F>(self, trace: F) -> Result<T, Error>where
F: FnOnce() -> String,
fn trace_with<F>(self, trace: F) -> Result<T, Error>where
F: FnOnce() -> String,
Add a new stack frame to the liquid_error::Error
.