pub enum Expr {
Nil,
Bool(bool),
Num(f64),
Str(String),
Dots,
FuncDef(FunctionDef),
PrefixExp(Box<PrefixExpr>),
Table(TableConstructor),
BinExp(BinExp),
UnExp(UnExp),
}
Expand description
exp ::= nil | false | true | Numeral | LiteralString | ‘…’ | functiondef | prefixexp | tableconstructor | exp binop exp | unop exp
Variants
Nil
Bool(bool)
Num(f64)
Str(String)
Dots
FuncDef(FunctionDef)
PrefixExp(Box<PrefixExpr>)
Table(TableConstructor)
BinExp(BinExp)
UnExp(UnExp)
Trait Implementations
impl StructuralPartialEq for Expr
Auto Trait Implementations
impl RefUnwindSafe for Expr
impl Send for Expr
impl Sync for Expr
impl Unpin for Expr
impl UnwindSafe for Expr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more