Trait liquid_error::ResultLiquidExt [−][src]
pub trait ResultLiquidExt<T> {
fn trace<S>(self, trace: S) -> Result<T>
where
S: Into<Cow<'static, str>>;
fn trace_with<F>(self, trace: F) -> Result<T>
where
F: FnOnce() -> String;
fn context<K, V>(self, key: K, value: V) -> Result<T>
where
K: Into<Cow<'static, str>>,
V: Into<Cow<'static, str>>;
fn context_with<F>(self, context: F) -> Result<T>
where
F: FnOnce() -> (String, String);
}Add context to a liquid_error::Error.
Required Methods
fn trace<S>(self, trace: S) -> Result<T> where
S: Into<Cow<'static, str>>,
S: Into<Cow<'static, str>>,
Add a new stack frame to the liquid_error::Error.
fn trace_with<F>(self, trace: F) -> Result<T> where
F: FnOnce() -> String,
F: FnOnce() -> String,
Add a new stack frame to the liquid_error::Error.
fn context<K, V>(self, key: K, value: V) -> Result<T> where
K: Into<Cow<'static, str>>,
V: Into<Cow<'static, str>>,
K: Into<Cow<'static, str>>,
V: Into<Cow<'static, str>>,
Add state the current stack frame.
fn context_with<F>(self, context: F) -> Result<T> where
F: FnOnce() -> (String, String),
F: FnOnce() -> (String, String),
Add state the current stack frame.
Implementors
impl<T> ResultLiquidExt<T> for Result<T>