pub enum ExprKind {
Path(ExprPath),
Dot(ExprPath, Ident),
Literal(Lit),
BinaryOp(BinOp, Box<[Expr; 2]>),
UnaryOp(UnOp, Box<Expr>),
App(Ident, Vec<Expr>),
Alias(AliasReft, Vec<Expr>),
IfThenElse(Box<[Expr; 3]>),
Constructor(Option<ExprPath>, Vec<ConstructorArg>),
}
Variants§
Path(ExprPath)
Dot(ExprPath, Ident)
Literal(Lit)
BinaryOp(BinOp, Box<[Expr; 2]>)
UnaryOp(UnOp, Box<Expr>)
App(Ident, Vec<Expr>)
Alias(AliasReft, Vec<Expr>)
IfThenElse(Box<[Expr; 3]>)
Constructor(Option<ExprPath>, Vec<ConstructorArg>)
Trait Implementations§
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