pub enum ExprKind {
Show 13 variants
Int(i64),
Float(f64),
Bool(bool),
String(Vec<StringPart>),
Name(String),
ImplicitMember(Ident),
List(Vec<Expr>),
Unary {
op: UnaryOp,
operand: Box<Expr>,
},
Binary {
op: BinaryOp,
lhs: Box<Expr>,
rhs: Box<Expr>,
},
Call {
callee: Box<Expr>,
args: Vec<Arg>,
trailing_block: Option<Block>,
},
Field {
base: Box<Expr>,
name: Ident,
},
Index {
base: Box<Expr>,
index: Box<Expr>,
},
Error,
}Variants§
Int(i64)
Float(f64)
Bool(bool)
String(Vec<StringPart>)
Name(String)
ImplicitMember(Ident)
.center: a member of whatever type the context expects.
List(Vec<Expr>)
Unary
Binary
Call
Field
Index
Error
Stands in for an expression that failed to parse, so parsing can continue.
Trait Implementations§
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 UnsafeUnpin 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