Enum ra_ap_syntax::ast::Expr [−][src]
pub enum Expr {}Show 32 variants
ArrayExpr(ArrayExpr), AwaitExpr(AwaitExpr), BinExpr(BinExpr), BlockExpr(BlockExpr), BoxExpr(BoxExpr), BreakExpr(BreakExpr), CallExpr(CallExpr), CastExpr(CastExpr), ClosureExpr(ClosureExpr), ContinueExpr(ContinueExpr), EffectExpr(EffectExpr), 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)
AwaitExpr(AwaitExpr)
BinExpr(BinExpr)
BlockExpr(BlockExpr)
BoxExpr(BoxExpr)
BreakExpr(BreakExpr)
CallExpr(CallExpr)
CastExpr(CastExpr)
ClosureExpr(ClosureExpr)
ContinueExpr(ContinueExpr)
EffectExpr(EffectExpr)
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)
Implementations
Trait Implementations
fn attrs(&self) -> AstChildren<Attr>ⓘNotable traits for AstChildren<N>
impl<N: AstNode> Iterator for AstChildren<N> type Item = N;
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Expr
impl !UnwindSafe for Expr
Blanket Implementations
fn replace_children(
&self,
to_replace: RangeInclusive<SyntaxElement>,
to_insert: impl IntoIterator<Item = SyntaxElement>
) -> Self
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.