[−][src]Struct liquid::error::FnKey
Partially constructed context (missing value) for Result<T>
.
Methods
impl<T, F> FnKey<T, F> where
F: FnOnce() -> Cow<'static, str>,
[src]
F: FnOnce() -> Cow<'static, str>,
#[must_use]
pub fn new(builder: Result<T, Error>, key: F) -> FnKey<T, F>
[src]
#[must_use]
pub fn new(builder: Result<T, Error>, key: F) -> FnKey<T, F>Save off a key for a context that will be added to builder
.
#[must_use]
pub fn value<S>(self, value: S) -> Result<T, Error> where
S: Into<Cow<'static, str>>,
[src]
#[must_use]
pub fn value<S>(self, value: S) -> Result<T, Error> whereS: Into<Cow<'static, str>>,
Finish creating context and add it to Result<T>
.
#[must_use]
pub fn value_with<V>(self, value: V) -> Result<T, Error> where
V: FnOnce() -> Cow<'static, str>,
[src]
#[must_use]
pub fn value_with<V>(self, value: V) -> Result<T, Error> whereV: FnOnce() -> Cow<'static, str>,
Finish creating context and add it to Result<T>
.
Auto Trait Implementations
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,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: Any,
T: Any,