Struct liquid_core::error::Key
source · [−]pub struct Key<T> { /* private fields */ }Expand description
Partially constructed context (missing value) for Result<T>.
Implementations
sourceimpl<T> Key<T>
impl<T> Key<T>
sourcepub fn new<S>(builder: Result<T>, key: S) -> Self where
S: Into<KString>,
pub fn new<S>(builder: Result<T>, key: S) -> Self where
S: Into<KString>,
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<F>(self, value: F) -> Result<T> where
F: FnOnce() -> KString,
pub fn value_with<F>(self, value: F) -> Result<T> where
F: FnOnce() -> KString,
Finish creating context and add it to Result<T>.
Auto Trait Implementations
impl<T> !RefUnwindSafe for Key<T>
impl<T> Send for Key<T> where
T: Send,
impl<T> Sync for Key<T> where
T: Sync,
impl<T> Unpin for Key<T> where
T: Unpin,
impl<T> !UnwindSafe for Key<T>
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