pub enum Statement {
FunctionDecl(Function),
StructDecl(Struct),
VariableDecl {
name: String,
ty: Type,
source_type: Option<String>,
value: Expression,
},
Assignment {
target: Expression,
value: Expression,
},
Conditional {
condition: Expression,
then_block: Vec<Self>,
else_block: Vec<Self>,
},
Return(Option<Expression>),
Expr(Expression),
ForIn {
var: String,
iter: Expression,
body: Vec<Self>,
},
Continue,
}Variants§
FunctionDecl(Function)
StructDecl(Struct)
VariableDecl
Assignment
Conditional
Return(Option<Expression>)
Expr(Expression)
ForIn
for _, VAR in pairs(ITER) do BODY end in Lua.
Continue
goto __continue_N in Lua (the label ::__continue_N:: is emitted by the enclosing ForIn).
Trait Implementations§
impl StructuralPartialEq for Statement
Auto Trait Implementations§
impl Freeze for Statement
impl RefUnwindSafe for Statement
impl Send for Statement
impl Sync for Statement
impl Unpin for Statement
impl UnsafeUnpin for Statement
impl UnwindSafe for Statement
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