pub enum Statement {
Show 16 variants
VariableDecl(Variable),
Assignment {
lhs: Expression,
rhs: Expression,
location: SourceLocation,
},
ReferenceBinding {
name: String,
target: Expression,
is_mutable: bool,
location: SourceLocation,
},
Return(Option<Expression>),
FunctionCall {
name: String,
args: Vec<Expression>,
location: SourceLocation,
},
Block(Vec<Statement>),
EnterScope,
ExitScope,
EnterLoop,
ExitLoop,
EnterUnsafe,
ExitUnsafe,
If {
condition: Expression,
then_branch: Vec<Statement>,
else_branch: Option<Vec<Statement>>,
location: SourceLocation,
},
ExpressionStatement {
expr: Expression,
location: SourceLocation,
},
PackExpansion {
pack_name: String,
operation: String,
location: SourceLocation,
},
LambdaExpr {
captures: Vec<LambdaCaptureKind>,
location: SourceLocation,
},
}Variants§
VariableDecl(Variable)
Assignment
ReferenceBinding
Return(Option<Expression>)
FunctionCall
Block(Vec<Statement>)
EnterScope
ExitScope
EnterLoop
ExitLoop
EnterUnsafe
ExitUnsafe
If
ExpressionStatement
PackExpansion
LambdaExpr
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Statement
impl RefUnwindSafe for Statement
impl Send for Statement
impl Sync for Statement
impl Unpin 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