pub struct Expression {
Show 23 fields pub type: Option<String>, pub elements: Vec<DictItem>, pub params: Vec<Property>, pub body: Option<Node>, pub operator: Option<String>, pub left: Option<Box<Expression>>, pub right: Option<Box<Expression>>, pub callee: Option<Box<Expression>>, pub arguments: Vec<Expression>, pub test: Option<Box<Expression>>, pub alternate: Option<Box<Expression>>, pub consequent: Option<Box<Expression>>, pub object: Option<Box<Expression>>, pub property: Option<Box<PropertyKey>>, pub array: Option<Box<Expression>>, pub index: Option<Box<Expression>>, pub properties: Vec<Property>, pub expression: Option<Box<Expression>>, pub argument: Option<Box<Expression>>, pub call: Option<CallExpression>, pub value: Option<String>, pub values: Vec<Duration>, pub name: Option<String>,
}
Expand description

Expression AST

Fields

type: Option<String>

Type of AST node

elements: Vec<DictItem>

Elements of the dictionary

params: Vec<Property>

Function parameters

body: Option<Node>

Node

operator: Option<String>

Operator

left: Option<Box<Expression>>

Left leaf

right: Option<Box<Expression>>

Right leaf

callee: Option<Box<Expression>>

Parent Expression

arguments: Vec<Expression>

Function arguments

test: Option<Box<Expression>>

Test Expr

alternate: Option<Box<Expression>>

Alternate Expr

consequent: Option<Box<Expression>>

Consequent Expr

object: Option<Box<Expression>>

Object Expr

property: Option<Box<PropertyKey>>

PropertyKey Expr

array: Option<Box<Expression>>

Array Expr

index: Option<Box<Expression>>

Index Expr

properties: Vec<Property>

Properties

expression: Option<Box<Expression>>

Expression

argument: Option<Box<Expression>>

Argument

call: Option<CallExpression>

Call Expr

value: Option<String>

Expression Value

values: Vec<Duration>

Duration values

name: Option<String>

Expression Name

Implementations

Return instance of expression

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Serialize this value into the given Serde serializer. Read more

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

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

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.