[−][src]Enum liquid_interpreter::Expression
An un-evaluated Value
.
Variants
Variable(Variable)
Un-evaluated.
Literal(Value)
Evaluated.
Methods
impl Expression
[src]
pub fn with_literal<S: Into<Scalar>>(literal: S) -> Self
[src]
Create an expression from a scalar literal.
pub fn into_literal(self) -> Option<Value>
[src]
Convert into a literal if possible.
pub fn into_variable(self) -> Option<Variable>
[src]
Convert into a variable, if possible.
pub fn try_evaluate<'c>(&'c self, runtime: &'c Runtime) -> Option<ValueCow<'c>>
[src]
Convert to a Value
.
pub fn evaluate<'c>(&'c self, runtime: &'c Runtime) -> Result<ValueCow<'c>>
[src]
Convert to a Value
.
Trait Implementations
impl Clone for Expression
[src]
fn clone(&self) -> Expression
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Expression
[src]
impl Display for Expression
[src]
impl Extend<Expression> for Variable
[src]
fn extend<T: IntoIterator<Item = Expression>>(&mut self, iter: T)
[src]
impl PartialEq<Expression> for Expression
[src]
fn eq(&self, other: &Expression) -> bool
[src]
fn ne(&self, other: &Expression) -> bool
[src]
impl StructuralPartialEq for Expression
[src]
Auto Trait Implementations
impl RefUnwindSafe for Expression
impl Send for Expression
impl Sync for Expression
impl Unpin for Expression
impl UnwindSafe for Expression
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
[src]
T: Any,
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> CloneAny for T where
T: Clone + Any,
[src]
T: Clone + Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,