Enum twig::nodes::expr::ExprValue [] [src]

pub enum ExprValue<'c> {
    Constant(ExprConstant<'c>),
    Name(&'c str),
    AssignName(&'c str),
    Array(Vec<Expr<'c>>),
    Hash(Vec<(Expr<'c>, Expr<'c>)>),
    UnaryOperator {
        value: &'c str,
        expr: Box<Expr<'c>>,
    },
    BinaryOperator {
        value: &'c str,
        left: Box<Expr<'c>>,
        right: Box<Expr<'c>>,
    },
    Concat {
        left: Box<Expr<'c>>,
        right: Box<Expr<'c>>,
    },
    Conditional {
        expr: Box<Expr<'c>>,
        yay: Box<Expr<'c>>,
        nay: Box<Expr<'c>>,
    },
    GetAttr {
        node: Box<Expr<'c>>,
        arg: Box<Expr<'c>>,
        arguments: Vec<Expr<'c>>,
        call_type: ExprCallType,
    },
    ImportedFunctionCall {
        uuid: Uuid,
        alias: &'c str,
        arguments: Vec<Expr<'c>>,
    },
    FunctionCall {
        name: &'c str,
        arguments: Vec<(Option<&'c str>, Expr<'c>)>,
    },
}

Variants

Constant
Name
AssignName
Array
Hash
UnaryOperator

Fields

value
expr
BinaryOperator

Fields

value
left
right
Concat

Fields

left
right
Conditional

Fields

expr
yay
nay
GetAttr

Fields

node
arg
arguments
call_type
ImportedFunctionCall

Fields

uuid
alias
arguments
FunctionCall

Fields

name
arguments

Trait Implementations

Derived Implementations

impl<'c> Clone for ExprValue<'c>

fn clone(&self) -> ExprValue<'c>

fn clone_from(&mut self, source: &Self)

impl<'c> PartialEq for ExprValue<'c>

fn eq(&self, __arg_0: &ExprValue<'c>) -> bool

fn ne(&self, __arg_0: &ExprValue<'c>) -> bool

impl<'c> Debug for ExprValue<'c>

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl<'c> Clone for ExprValue<'c>

fn clone(&self) -> ExprValue<'c>

fn clone_from(&mut self, source: &Self)

impl<'c> PartialEq for ExprValue<'c>

fn eq(&self, __arg_0: &ExprValue<'c>) -> bool

fn ne(&self, __arg_0: &ExprValue<'c>) -> bool

impl<'c> Debug for ExprValue<'c>

fn fmt(&self, __arg_0: &mut Formatter) -> Result