Enum ra_ap_syntax::ast::Expr[][src]

pub enum Expr {
Show 31 variants ArrayExpr(ArrayExpr), AwaitExpr(AwaitExpr), BinExpr(BinExpr), BlockExpr(BlockExpr), BoxExpr(BoxExpr), BreakExpr(BreakExpr), CallExpr(CallExpr), CastExpr(CastExpr), ClosureExpr(ClosureExpr), ContinueExpr(ContinueExpr), FieldExpr(FieldExpr), ForExpr(ForExpr), IfExpr(IfExpr), IndexExpr(IndexExpr), Literal(Literal), LoopExpr(LoopExpr), MacroCall(MacroCall), MacroStmts(MacroStmts), MatchExpr(MatchExpr), MethodCallExpr(MethodCallExpr), ParenExpr(ParenExpr), PathExpr(PathExpr), PrefixExpr(PrefixExpr), RangeExpr(RangeExpr), RecordExpr(RecordExpr), RefExpr(RefExpr), ReturnExpr(ReturnExpr), TryExpr(TryExpr), TupleExpr(TupleExpr), WhileExpr(WhileExpr), YieldExpr(YieldExpr),
}

Variants

ArrayExpr(ArrayExpr)

Tuple Fields

AwaitExpr(AwaitExpr)

Tuple Fields

BinExpr(BinExpr)

Tuple Fields

BlockExpr(BlockExpr)

Tuple Fields

BoxExpr(BoxExpr)

Tuple Fields

BreakExpr(BreakExpr)

Tuple Fields

CallExpr(CallExpr)

Tuple Fields

CastExpr(CastExpr)

Tuple Fields

ClosureExpr(ClosureExpr)

Tuple Fields

ContinueExpr(ContinueExpr)

Tuple Fields

FieldExpr(FieldExpr)

Tuple Fields

ForExpr(ForExpr)

Tuple Fields

IfExpr(IfExpr)

Tuple Fields

0: IfExpr

IndexExpr(IndexExpr)

Tuple Fields

Literal(Literal)

Tuple Fields

LoopExpr(LoopExpr)

Tuple Fields

MacroCall(MacroCall)

Tuple Fields

MacroStmts(MacroStmts)

Tuple Fields

MatchExpr(MatchExpr)

Tuple Fields

MethodCallExpr(MethodCallExpr)

Tuple Fields

ParenExpr(ParenExpr)

Tuple Fields

PathExpr(PathExpr)

Tuple Fields

PrefixExpr(PrefixExpr)

Tuple Fields

RangeExpr(RangeExpr)

Tuple Fields

RecordExpr(RecordExpr)

Tuple Fields

RefExpr(RefExpr)

Tuple Fields

ReturnExpr(ReturnExpr)

Tuple Fields

TryExpr(TryExpr)

Tuple Fields

TupleExpr(TupleExpr)

Tuple Fields

WhileExpr(WhileExpr)

Tuple Fields

YieldExpr(YieldExpr)

Tuple Fields

Implementations

Returns text, parsed as an expression, but only if it has no errors.

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.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

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

This method tests for !=.

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

Compare self to key and return true if they are equal.

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)

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.