pub enum Statement {
Let(LetStatement),
Assignment(AssignmentStatement),
Expression(Expression),
TypeDefinition(TypeDefinitionStmt),
FunctionDeclaration(FunctionDeclarationStmt),
Return(ReturnStatement),
If(IfStatement),
}
Expand description
Statement nodes in the AST
Variants§
Let(LetStatement)
Variable declaration
Assignment(AssignmentStatement)
Variable assignment
Expression(Expression)
Expression statement
TypeDefinition(TypeDefinitionStmt)
Type definition (e.g., struct)
FunctionDeclaration(FunctionDeclarationStmt)
Function declaration
Return(ReturnStatement)
Return statement
If(IfStatement)
Conditional statement (if/else)
Implementations§
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