Enum secel::AstNode

source ·
pub enum AstNode {
    And(Box<AstNode>, Box<AstNode>),
    Eq(Box<AstNode>, Box<AstNode>),
    Ge(Box<AstNode>, Box<AstNode>),
    Gt(Box<AstNode>, Box<AstNode>),
    If(Box<AstNode>, Box<AstNode>, Box<AstNode>),
    Le(Box<AstNode>, Box<AstNode>),
    Lt(Box<AstNode>, Box<AstNode>),
    Or(Box<AstNode>, Box<AstNode>),
    Null,
    Number(IndexKey),
    Nq(Box<AstNode>, Box<AstNode>),
}
Expand description

Node of the abstract syntax tree.

Variants

And(Box<AstNode>, Box<AstNode>)

Tuple Fields

0: Box<AstNode>

Node representing left-side operand.

1: Box<AstNode>

Node representing right-side operand.

Node representing conjunction operator and.

Eq(Box<AstNode>, Box<AstNode>)

Tuple Fields

0: Box<AstNode>

Node representing left-side operand.

1: Box<AstNode>

Node representing right-side operand.

Node representing comparison operator =.

Ge(Box<AstNode>, Box<AstNode>)

Tuple Fields

0: Box<AstNode>

Node representing left-side operand.

1: Box<AstNode>

Node representing right-side operand.

Node representing comparison operator >.

Gt(Box<AstNode>, Box<AstNode>)

Tuple Fields

0: Box<AstNode>

Node representing left-side operand.

1: Box<AstNode>

Node representing right-side operand.

Node representing comparison operator >=.

If(Box<AstNode>, Box<AstNode>, Box<AstNode>)

Tuple Fields

0: Box<AstNode>

Node representing condition expression.

1: Box<AstNode>

Node representing expression invoked when the condition is true.

2: Box<AstNode>

Node representing expression invoked when the condition is false.

Node representing if expression.

Le(Box<AstNode>, Box<AstNode>)

Tuple Fields

0: Box<AstNode>

Node representing left-side operand.

1: Box<AstNode>

Node representing right-side operand.

Node representing comparison operator <.

Lt(Box<AstNode>, Box<AstNode>)

Tuple Fields

0: Box<AstNode>

Node representing left-side operand.

1: Box<AstNode>

Node representing right-side operand.

Node representing comparison operator <=.

Or(Box<AstNode>, Box<AstNode>)

Tuple Fields

0: Box<AstNode>

Node representing left-side operand.

1: Box<AstNode>

Node representing right-side operand.

Node representing disjunction operator or.

Null

Node representing null value.

Number(IndexKey)

Node representing result index.

Nq(Box<AstNode>, Box<AstNode>)

Tuple Fields

0: Box<AstNode>

Node representing left-side operand.

1: Box<AstNode>

Node representing right-side operand.

Node representing comparison operator <>.

Trait Implementations

Formats the value using the given formatter. Read more

Converts AstNode into string (ascii tree).

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.

Calls U::from(self).

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

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.