Struct liquid_core::error::FnKey
source · [−]Expand description
Partially constructed context (missing value) for Result<T>.
Implementations
sourceimpl<T, F> FnKey<T, F> where
F: FnOnce() -> KString,
impl<T, F> FnKey<T, F> where
F: FnOnce() -> KString,
sourcepub fn new(builder: Result<T>, key: F) -> Self
pub fn new(builder: Result<T>, key: F) -> Self
Save off a key for a context that will be added to builder.
sourcepub fn value<S>(self, value: S) -> Result<T> where
S: Into<KString>,
pub fn value<S>(self, value: S) -> Result<T> where
S: Into<KString>,
Finish creating context and add it to Result<T>.
sourcepub fn value_with<V>(self, value: V) -> Result<T> where
V: FnOnce() -> KString,
pub fn value_with<V>(self, value: V) -> Result<T> where
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,
impl<T, F> Sync for FnKey<T, F> where
F: Sync,
T: Sync,
impl<T, F> Unpin for FnKey<T, F> where
F: Unpin,
T: Unpin,
impl<T, F> !UnwindSafe for FnKey<T, F>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more