pub enum ExprKind {
Lit(Box<Lit>),
Ident(Box<Ident>),
Function {
kind: FunctionKind,
params: Vec<Ident>,
variadic: Option<Box<Ident>>,
body: Box<Block>,
},
FunctionId(usize),
Table {
properties: Vec<TableProperty>,
},
List {
items: Vec<Expr>,
},
Unary {
operator: UnOp,
argument: Box<Expr>,
},
Binary {
operator: BinOp,
left: Box<Expr>,
right: Box<Expr>,
},
Member {
table: Box<Expr>,
property: Box<Expr>,
kind: MemberKind,
safe: bool,
},
MetaMember {
table: Box<Expr>,
safe: bool,
},
Call {
callee: Box<Expr>,
arguments: Vec<Expr>,
propagating_error: bool,
},
}Expand description
Kind of expression.
Variants§
Lit(Box<Lit>)
Ident(Box<Ident>)
Function
FunctionId(usize)
Table
Fields
§
properties: Vec<TableProperty>List
Unary
Binary
Member
MetaMember
Call
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