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 of ArrayExpr

0: ArrayExpr
AwaitExpr(AwaitExpr)

Tuple Fields of AwaitExpr

0: AwaitExpr
BinExpr(BinExpr)

Tuple Fields of BinExpr

0: BinExpr
BlockExpr(BlockExpr)

Tuple Fields of BlockExpr

0: BlockExpr
BoxExpr(BoxExpr)

Tuple Fields of BoxExpr

0: BoxExpr
BreakExpr(BreakExpr)

Tuple Fields of BreakExpr

0: BreakExpr
CallExpr(CallExpr)

Tuple Fields of CallExpr

0: CallExpr
CastExpr(CastExpr)

Tuple Fields of CastExpr

0: CastExpr
ClosureExpr(ClosureExpr)

Tuple Fields of ClosureExpr

0: ClosureExpr
ContinueExpr(ContinueExpr)

Tuple Fields of ContinueExpr

0: ContinueExpr
FieldExpr(FieldExpr)

Tuple Fields of FieldExpr

0: FieldExpr
ForExpr(ForExpr)

Tuple Fields of ForExpr

0: ForExpr
IfExpr(IfExpr)

Tuple Fields of IfExpr

0: IfExpr
IndexExpr(IndexExpr)

Tuple Fields of IndexExpr

0: IndexExpr
Literal(Literal)

Tuple Fields of Literal

0: Literal
LoopExpr(LoopExpr)

Tuple Fields of LoopExpr

0: LoopExpr
MacroCall(MacroCall)

Tuple Fields of MacroCall

0: MacroCall
MacroStmts(MacroStmts)

Tuple Fields of MacroStmts

0: MacroStmts
MatchExpr(MatchExpr)

Tuple Fields of MatchExpr

0: MatchExpr
MethodCallExpr(MethodCallExpr)

Tuple Fields of MethodCallExpr

0: MethodCallExpr
ParenExpr(ParenExpr)

Tuple Fields of ParenExpr

0: ParenExpr
PathExpr(PathExpr)

Tuple Fields of PathExpr

0: PathExpr
PrefixExpr(PrefixExpr)

Tuple Fields of PrefixExpr

0: PrefixExpr
RangeExpr(RangeExpr)

Tuple Fields of RangeExpr

0: RangeExpr
RecordExpr(RecordExpr)

Tuple Fields of RecordExpr

0: RecordExpr
RefExpr(RefExpr)

Tuple Fields of RefExpr

0: RefExpr
ReturnExpr(ReturnExpr)

Tuple Fields of ReturnExpr

0: ReturnExpr
TryExpr(TryExpr)

Tuple Fields of TryExpr

0: TryExpr
TupleExpr(TupleExpr)

Tuple Fields of TupleExpr

0: TupleExpr
WhileExpr(WhileExpr)

Tuple Fields of WhileExpr

0: WhileExpr
YieldExpr(YieldExpr)

Tuple Fields of YieldExpr

0: YieldExpr

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)

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.