pub enum ExprKind {
Show 13 variants Cond { span: TokenSpan, expr: Box<Expr>, expr_if_true: Box<Expr>, expr_if_false: Box<Expr>, }, Bin { span: TokenSpan, op: BinOp, left_expr: Box<Expr>, right_expr: Box<Expr>, }, Un { span: TokenSpan, op: UnOp, expr: Box<Expr>, }, Field { span: TokenSpan, expr: Box<Expr>, field_ident: Ident, }, Index { span: TokenSpan, expr: Box<Expr>, index_expr: Box<Expr>, }, MethodCall { span: TokenSpan, ident: Ident, closure_site_index: Cell<Option<usize>>, arg_exprs: Vec<Expr>, }, PlainCall { span: TokenSpan, fn_ptr: Option<FnPtr>, ident: Option<Ident>, param_index: Cell<Option<usize>>, closure_site_index: Cell<Option<usize>>, arg_exprs: Vec<Expr>, }, BuiltinCall { span: TokenSpan, ident: Ident, arg_exprs: Vec<Expr>, }, ClosureDef(ClosureDefIndex), ConsCall { span: TokenSpan, ty_lit: TyLit, arg_exprs: Vec<Expr>, }, StructCons { struct_ptr: StructPtr, span: TokenSpan, args: Vec<(Ident, Expr)>, }, Var { span: TokenSpan, ident: Option<Ident>, kind: Cell<Option<VarKind>>, var_resolve: VarResolve, }, Lit { span: TokenSpan, lit: Lit, },
}

Variants

Cond

Fields

span: TokenSpan
expr: Box<Expr>
expr_if_true: Box<Expr>
expr_if_false: Box<Expr>

Bin

Fields

span: TokenSpan
op: BinOp
left_expr: Box<Expr>
right_expr: Box<Expr>

Un

Fields

span: TokenSpan
op: UnOp
expr: Box<Expr>

Field

Fields

span: TokenSpan
expr: Box<Expr>
field_ident: Ident

Index

Fields

span: TokenSpan
expr: Box<Expr>
index_expr: Box<Expr>

MethodCall

Fields

span: TokenSpan
ident: Ident
closure_site_index: Cell<Option<usize>>
arg_exprs: Vec<Expr>

PlainCall

Fields

span: TokenSpan
fn_ptr: Option<FnPtr>
ident: Option<Ident>
param_index: Cell<Option<usize>>
closure_site_index: Cell<Option<usize>>
arg_exprs: Vec<Expr>

BuiltinCall

Fields

span: TokenSpan
ident: Ident
arg_exprs: Vec<Expr>

ClosureDef(ClosureDefIndex)

ConsCall

Fields

span: TokenSpan
ty_lit: TyLit
arg_exprs: Vec<Expr>

StructCons

Fields

struct_ptr: StructPtr
span: TokenSpan
args: Vec<(Ident, Expr)>

Var

Fields

span: TokenSpan
ident: Option<Ident>
var_resolve: VarResolve

Lit

Fields

span: TokenSpan
lit: Lit

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

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