pub struct Node {
Show 23 fields pub type: Option<String>, pub elements: Vec<DictItem>, pub params: Vec<Property>, pub body: Vec<Statement>, 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<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

Node

Fields

type: Option<String>

Type of AST node

elements: Vec<DictItem>

Elements of the dictionary

params: Vec<Property>

Function parameters

body: Vec<Statement>

Block body

operator: Option<String>

Node Operator

left: Option<Box<Expression>>

Left left node

right: Option<Box<Expression>>

Right right node

callee: Option<Box<Expression>>

Parent node

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<PropertyKey>

PropertyKey

array: Option<Box<Expression>>

Array Expr

index: Option<Box<Expression>>

Index Expr

properties: Vec<Property>

Object properties

expression: Option<Box<Expression>>

Expression

argument: Option<Box<Expression>>

Node arguments

call: Option<CallExpression>

Call Expr

value: Option<String>

Node Value

values: Vec<Duration>

Duration values

name: Option<String>

Node name

Implementations

Return instance of Node

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 !=.

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.