pub enum ExprKind {
Show 23 variants
Empty,
Assign(Assign),
Modify(Modify),
Binary(Binary),
Unary(Unary),
Member(Member),
Index(Index),
Structor(Structor),
Path(Path),
Literal(Literal),
Array(Array),
ArrayRep(ArrayRep),
AddrOf(AddrOf),
Block(Block),
Group(Group),
Tuple(Tuple),
Loop(Loop),
While(While),
If(If),
For(For),
Break(Break),
Return(Return),
Continue(Continue),
}
Expand description
Any of the different Expressions
Variants§
Empty
An empty expression: (
)
Assign(Assign)
Modify(Modify)
A Modify-assignment expression: Expr
(ModifyKind
Expr
)+
Binary(Binary)
A Binary expression: Expr
(BinaryKind
Expr
)+
Unary(Unary)
Member(Member)
A Member access expression: Expr
MemberKind
*
Index(Index)
An Array Index expression: a[10, 20, 30]
Structor(Structor)
A Struct creation expression: Path {
(Fielder ,
)* Fielder? }
Path(Path)
A path expression: ::
? PathPart (::
PathPart)*
Literal(Literal)
A Literal: 0x42, 1e123, 2.4, “Hello”
Array(Array)
ArrayRep(ArrayRep)
An Array literal constructed with repeat syntax
[
Expr ;
Literal ]
AddrOf(AddrOf)
An address-of expression: &
mut
? Expr
Block(Block)
Group(Group)
Tuple(Tuple)
Loop(Loop)
While(While)
If(If)
For(For)
Break(Break)
Return(Return)
Continue(Continue)
A continue expression: continue
Trait Implementations§
source§impl PartialEq for ExprKind
impl PartialEq for ExprKind
impl Eq for ExprKind
impl StructuralPartialEq for ExprKind
Auto Trait Implementations§
impl Freeze for ExprKind
impl RefUnwindSafe for ExprKind
impl Send for ExprKind
impl Sync for ExprKind
impl Unpin for ExprKind
impl UnwindSafe for ExprKind
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more