Struct liquid_interpreter::Variable [−][src]
pub struct Variable { /* fields omitted */ }A Value reference.
Methods
impl Variable[src]
impl Variablepub fn with_literal<S: Into<Scalar>>(value: S) -> Self[src]
pub fn with_literal<S: Into<Scalar>>(value: S) -> SelfCreate a Value reference.
pub fn push_literal<S: Into<Scalar>>(self, value: S) -> Self[src]
pub fn push_literal<S: Into<Scalar>>(self, value: S) -> SelfAppend a literal.
pub fn evaluate(&self, context: &Context) -> Result<Path>[src]
pub fn evaluate(&self, context: &Context) -> Result<Path>Convert to a Path.
Trait Implementations
impl Clone for Variable[src]
impl Clone for Variablefn clone(&self) -> Variable[src]
fn clone(&self) -> VariableReturns 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 Debug for Variable[src]
impl Debug for Variablefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for Variable[src]
impl Default for Variableimpl PartialEq for Variable[src]
impl PartialEq for Variablefn eq(&self, other: &Variable) -> bool[src]
fn eq(&self, other: &Variable) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Variable) -> bool[src]
fn ne(&self, other: &Variable) -> boolThis method tests for !=.
impl Extend<Scalar> for Variable[src]
impl Extend<Scalar> for Variablefn extend<T: IntoIterator<Item = Scalar>>(&mut self, iter: T)[src]
fn extend<T: IntoIterator<Item = Scalar>>(&mut self, iter: T)Extends a collection with the contents of an iterator. 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
impl Display for Variable[src]
impl Display for Variablefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Renderable for Variable[src]
impl Renderable for Variable