Enum full_moon::ast::Stmt [−][src]
#[non_exhaustive] pub enum Stmt {}Show 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
Assignment(Assignment)
An assignment, such as x = 1
Do(Do)
A do block, do end
FunctionCall(FunctionCall)
A function call on its own, such as call()
FunctionDeclaration(FunctionDeclaration)
A function declaration, such as function x() end
GenericFor(GenericFor)
A generic for loop, such as for index, value in pairs(list) do end
If(If)
An if statement
LocalAssignment(LocalAssignment)
A local assignment, such as local x = 1
LocalFunction(LocalFunction)
A local function declaration, such as local function x() end
NumericFor(NumericFor)
A numeric for loop, such as for index = 1, 10 do end
Repeat(Repeat)
A repeat loop
While(While)
A while loop
CompoundAssignment(CompoundAssignment)
A compound assignment, such as +=
Only available when the “roblox” feature flag is enabled
ExportedTypeDeclaration(ExportedTypeDeclaration)
An exported type declaration, such as export type Meters = number
Only available when the “roblox” feature flag is enabled.
TypeDeclaration(TypeDeclaration)
A type declaration, such as type Meters = number
Only available when the “roblox” feature flag is enabled.
Goto(Goto)
A goto statement, such as goto label
Only available when the “lua52” feature flag is enabled.
Label(Label)
A label, such as ::label::
Only available when the “lua52” feature flag is enabled.
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