Enum espr::ast::Expression[][src]

pub enum Expression {
    Unary {
        op: UnaryOperator,
        arg: Box<Expression>,
    },
    Binary {
        op: BinaryOperator,
        arg1: Box<Expression>,
        arg2: Box<Expression>,
    },
    Relation {
        op: RelationOperator,
        lhs: Box<Expression>,
        rhs: Box<Expression>,
    },
    Literal(Literal),
    QualifiableFactor {
        factor: QualifiableFactor,
        qualifiers: Vec<Qualifier>,
    },
    EntityConstructor {
        name: String,
        values: Vec<Expression>,
    },
    Interval {
        op_low: IntervalOperator,
        op_high: IntervalOperator,
        high: Box<Expression>,
        low: Box<Expression>,
        item: Box<Expression>,
    },
    EnumerationReference {
        ty: Option<String>,
        enum_ref: String,
    },
    AggregateInitializer {
        elements: Vec<Element>,
    },
    Query {
        variable: String,
        source: Box<Expression>,
        expr: Box<Expression>,
    },
}

Variants

Unary

Fields of Unary

op: UnaryOperatorarg: Box<Expression>
Binary

Fields of Binary

op: BinaryOperatorarg1: Box<Expression>arg2: Box<Expression>
Relation

Fields of Relation

op: RelationOperatorlhs: Box<Expression>rhs: Box<Expression>
Literal(Literal)

Tuple Fields of Literal

0: Literal
QualifiableFactor

Fields of QualifiableFactor

factor: QualifiableFactorqualifiers: Vec<Qualifier>
EntityConstructor

Fields of EntityConstructor

name: Stringvalues: Vec<Expression>
Interval

Fields of Interval

op_low: IntervalOperatorop_high: IntervalOperatorhigh: Box<Expression>low: Box<Expression>item: Box<Expression>
EnumerationReference

Fields of EnumerationReference

ty: Option<String>enum_ref: String
AggregateInitializer

Fields of AggregateInitializer

elements: Vec<Element>
Query

Fields of Query

variable: Stringsource: Box<Expression>expr: Box<Expression>

Implementations

SELF constant

SELF constant with qualifiers

? constant

Real value literal

Trait Implementations

The resulting type after applying the + operator.

Performs the + operation. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The resulting type after applying the * operator.

Performs the * operation. Read more

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

This method tests for !=.

The resulting type after applying the - operator.

Performs the - operation. 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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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.