[][src]Struct liquid_error::Key

pub struct Key<T> { /* fields omitted */ }

Partially constructed context (missing value) for Result<T>.

Methods

impl<T> Key<T>[src]

#[must_use] pub fn new<S>(builder: Result<T>, key: S) -> Self where
    S: Into<Cow<'static, str>>, 
[src]

Save off a key for a context that will be added to builder.

#[must_use] pub fn value<S>(self, value: S) -> Result<T> where
    S: Into<Cow<'static, str>>, 
[src]

Finish creating context and add it to Result<T>.

#[must_use] pub fn value_with<F>(self, value: F) -> Result<T> where
    F: FnOnce() -> Cow<'static, str>, 
[src]

Finish creating context and add it to Result<T>.

Auto Trait Implementations

impl<T> Sync for Key<T> where
    T: Sync

impl<T> Unpin for Key<T> where
    T: Unpin

impl<T> Send for Key<T> where
    T: Send

impl<T> !UnwindSafe for Key<T>

impl<T> !RefUnwindSafe for Key<T>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]