Enum tonic_parser::Expression[][src]

pub enum Expression {
    String(String),
    Number(f64),
    Bool(bool),
    Array(Vec<Expression>),
    Identifier(String),
    Prefix(OpBox<Expression>),
    Infix(Box<Expression>, OpBox<Expression>),
    Call(Box<Expression>, Vec<Expression>),
    Assign(Box<Expression>, Box<Expression>),
    SetProperty(Box<Expression>, Box<Expression>),
    GetProperty(Box<Expression>, Box<Expression>),
}

Variants

String(String)

Tuple Fields of String

0: String
Number(f64)

Tuple Fields of Number

0: f64
Bool(bool)

Tuple Fields of Bool

0: bool
Array(Vec<Expression>)

Tuple Fields of Array

0: Vec<Expression>
Identifier(String)

Tuple Fields of Identifier

0: String
Prefix(OpBox<Expression>)

Tuple Fields of Prefix

0: Op1: Box<Expression>

Tuple Fields of Infix

0: Box<Expression>1: Op2: Box<Expression>

Tuple Fields of Call

0: Box<Expression>1: Vec<Expression>

Tuple Fields of Assign

0: Box<Expression>1: Box<Expression>
SetProperty(Box<Expression>, Box<Expression>)

Tuple Fields of SetProperty

0: Box<Expression>1: Box<Expression>
GetProperty(Box<Expression>, Box<Expression>)

Tuple Fields of GetProperty

0: Box<Expression>1: Box<Expression>

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.