Enum rink_core::ast::Expr[][src]

pub enum Expr {
    Unit {
        name: String,
    },
    Quote {
        string: String,
    },
    Const {
        value: Numeric,
    },
    Date {
        tokens: Vec<DateToken>,
    },
    BinOp(BinOpExpr),
    UnaryOp(UnaryOpExpr),
    Mul {
        exprs: Vec<Expr>,
    },
    Of {
        property: String,
        expr: Box<Expr>,
    },
    Call {
        func: Function,
        args: Vec<Expr>,
    },
    Error {
        message: String,
    },
}

Variants

Unit

Fields of Unit

name: String
Quote

Fields of Quote

string: String
Const

Fields of Const

value: Numeric
Date

Fields of Date

tokens: Vec<DateToken>
BinOp(BinOpExpr)

Tuple Fields of BinOp

0: BinOpExpr
UnaryOp(UnaryOpExpr)

Tuple Fields of UnaryOp

0: UnaryOpExpr
Mul

Fields of Mul

exprs: Vec<Expr>
Of

Fields of Of

property: Stringexpr: Box<Expr>
Call

Fields of Call

func: Functionargs: Vec<Expr>
Error

Fields of Error

message: String

Implementations

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

Formats the value using the given formatter. Read more

Performs the conversion.

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

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

Converts the given value to a String. 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.