Enum tonic_parser::Expression[][src]

pub enum Expression {
Show 13 variants String(String), Number(f64), Bool(bool), Array(Vec<Expression>), Map(HashMap<String, Expression>), Identifier(String), Prefix(OpBox<Expression>), Infix(Box<Expression>, OpBox<Expression>), Call(Box<Expression>, Vec<Expression>), Assign(Box<Expression>, Box<Expression>), Index(Box<Expression>, Option<Box<Expression>>), Dot(Box<Expression>, Box<Expression>), Closure(Vec<Parameter>, Vec<Statement>),
}

Variants

String(String)

Tuple Fields

0: String

Number(f64)

Tuple Fields

0: f64

Bool(bool)

Tuple Fields

0: bool

Array(Vec<Expression>)

Tuple Fields

Map(HashMap<String, Expression>)

Tuple Fields

Identifier(String)

Tuple Fields

0: String

Prefix(OpBox<Expression>)

Tuple Fields

0: Op

Infix(Box<Expression>, OpBox<Expression>)

Tuple Fields

1: Op

Call(Box<Expression>, Vec<Expression>)

Tuple Fields

Assign(Box<Expression>, Box<Expression>)

Tuple Fields

Index(Box<Expression>, Option<Box<Expression>>)

Tuple Fields

Dot(Box<Expression>, Box<Expression>)

Tuple Fields

Closure(Vec<Parameter>, Vec<Statement>)

Tuple Fields

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.