Enum full_moon::ast::Stmt [−][src]
#[non_exhaustive] pub enum Stmt {}Show 16 variants
Assignment(Assignment), Do(Do), FunctionCall(FunctionCall), FunctionDeclaration(FunctionDeclaration), GenericFor(GenericFor), If(If), LocalAssignment(LocalAssignment), LocalFunction(LocalFunction), NumericFor(NumericFor), Repeat(Repeat), While(While), CompoundAssignment(CompoundAssignment), ExportedTypeDeclaration(ExportedTypeDeclaration), TypeDeclaration(TypeDeclaration), Goto(Goto), Label(Label),
Expand description
A statement that stands alone
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
An assignment, such as x = 1
Tuple Fields of Assignment
0: Assignment
A do block, do end
Tuple Fields of Do
0: Do
A function call on its own, such as call()
Tuple Fields of FunctionCall
0: FunctionCall
A function declaration, such as function x() end
Tuple Fields of FunctionDeclaration
A generic for loop, such as for index, value in pairs(list) do end
Tuple Fields of GenericFor
0: GenericFor
An if statement
Tuple Fields of If
0: If
A local assignment, such as local x = 1
Tuple Fields of LocalAssignment
A local function declaration, such as local function x() end
Tuple Fields of LocalFunction
A numeric for loop, such as for index = 1, 10 do end
Tuple Fields of NumericFor
0: NumericFor
A repeat loop
Tuple Fields of Repeat
0: Repeat
A while loop
Tuple Fields of While
0: While
A compound assignment, such as +=
Only available when the “roblox” feature flag is enabled
Tuple Fields of CompoundAssignment
An exported type declaration, such as export type Meters = number
Only available when the “roblox” feature flag is enabled.
Tuple Fields of ExportedTypeDeclaration
A type declaration, such as type Meters = number
Only available when the “roblox” feature flag is enabled.
Tuple Fields of TypeDeclaration
A goto statement, such as goto label
Only available when the “lua52” feature flag is enabled.
Tuple Fields of Goto
0: Goto
A label, such as ::label::
Only available when the “lua52” feature flag is enabled.
Tuple Fields of Label
0: Label
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
The start position of a node. None if can’t be determined
The end position of a node. None if it can’t be determined
Whether another node of the same type is the same as this one semantically, ignoring position
The token references that comprise a node
The full range of a node, if it has both start and end positions
Auto Trait Implementations
impl RefUnwindSafe for Stmt
impl UnwindSafe for Stmt
Blanket Implementations
Mutably borrows from an owned value. Read more