Enum liquid_interpreter::Expression [−][src]
An un-evaluated Value.
Variants
Variable(Variable)Un-evaluated.
Literal(Value)Evaluated.
Methods
impl Expression[src]
impl Expressionpub fn with_literal<S: Into<Scalar>>(literal: S) -> Self[src]
pub fn with_literal<S: Into<Scalar>>(literal: S) -> SelfCreate an expression from a scalar literal.
pub fn evaluate(&self, context: &Context) -> Result<Value>[src]
pub fn evaluate(&self, context: &Context) -> Result<Value>Convert to a Value.
Trait Implementations
impl Debug for Expression[src]
impl Debug for Expressionfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for Expression[src]
impl Clone for Expressionfn clone(&self) -> Expression[src]
fn clone(&self) -> ExpressionReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl PartialEq for Expression[src]
impl PartialEq for Expressionfn eq(&self, other: &Expression) -> bool[src]
fn eq(&self, other: &Expression) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Expression) -> bool[src]
fn ne(&self, other: &Expression) -> boolThis method tests for !=.
impl Display for Expression[src]
impl Display for Expressionfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Extend<Expression> for Variable[src]
impl Extend<Expression> for Variablefn extend<T: IntoIterator<Item = Expression>>(&mut self, iter: T)[src]
fn extend<T: IntoIterator<Item = Expression>>(&mut self, iter: T)Extends a collection with the contents of an iterator. Read more
Auto Trait Implementations
impl Send for Expression
impl Send for Expressionimpl Sync for Expression
impl Sync for Expression