[−][src]Struct liquid_error::FnKey
Partially constructed context (missing value) for Result<T>
.
Methods
impl<T, F> FnKey<T, F> where
F: FnOnce() -> KString,
[src]
F: FnOnce() -> KString,
#[must_use]pub fn new(builder: Result<T>, key: F) -> Self
[src]
Save off a key for a context that will be added to builder
.
pub fn value<S>(self, value: S) -> Result<T> where
S: Into<KString>,
[src]
S: Into<KString>,
Finish creating context and add it to Result<T>
.
pub fn value_with<V>(self, value: V) -> Result<T> where
V: FnOnce() -> KString,
[src]
V: FnOnce() -> KString,
Finish creating context and add it to Result<T>
.
Auto Trait Implementations
impl<T, F> !RefUnwindSafe for FnKey<T, F>
impl<T, F> Send for FnKey<T, F> where
F: Send,
T: Send,
F: Send,
T: Send,
impl<T, F> Sync for FnKey<T, F> where
F: Sync,
T: Sync,
F: Sync,
T: Sync,
impl<T, F> Unpin for FnKey<T, F> where
F: Unpin,
T: Unpin,
F: Unpin,
T: Unpin,
impl<T, F> !UnwindSafe for FnKey<T, F>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,