Enum full_moon::ast::Stmt [−][src]
#[non_exhaustive] pub enum Stmt<'a> {}Show variants
Assignment(Assignment<'a>), Do(Do<'a>), FunctionCall(FunctionCall<'a>), FunctionDeclaration(FunctionDeclaration<'a>), GenericFor(GenericFor<'a>), If(If<'a>), LocalAssignment(LocalAssignment<'a>), LocalFunction(LocalFunction<'a>), NumericFor(NumericFor<'a>), Repeat(Repeat<'a>), While(While<'a>), CompoundAssignment(CompoundAssignment<'a>), ExportedTypeDeclaration(ExportedTypeDeclaration<'a>), TypeDeclaration(TypeDeclaration<'a>), Goto(Goto<'a>), Label(Label<'a>),
Expand description
A statement that stands alone
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Assignment(Assignment<'a>)
An assignment, such as x = 1
Do(Do<'a>)
A do block, do end
FunctionCall(FunctionCall<'a>)
A function call on its own, such as call()
FunctionDeclaration(FunctionDeclaration<'a>)
A function declaration, such as function x() end
GenericFor(GenericFor<'a>)
A generic for loop, such as for index, value in pairs(list) do end
If(If<'a>)
An if statement
LocalAssignment(LocalAssignment<'a>)
A local assignment, such as local x = 1
LocalFunction(LocalFunction<'a>)
A local function declaration, such as local function x() end
NumericFor(NumericFor<'a>)
A numeric for loop, such as for index = 1, 10 do end
Repeat(Repeat<'a>)
A repeat loop
While(While<'a>)
A while loop
CompoundAssignment(CompoundAssignment<'a>)
A compound assignment, such as +=
Only available when the “roblox” feature flag is enabled
ExportedTypeDeclaration(ExportedTypeDeclaration<'a>)
An exported type declaration, such as export type Meters = number
Only available when the “roblox” feature flag is enabled.
TypeDeclaration(TypeDeclaration<'a>)
A type declaration, such as type Meters = number
Only available when the “roblox” feature flag is enabled.
Goto(Goto<'a>)
A goto statement, such as goto label
Only available when the “lua52” feature flag is enabled.
Label(Label<'a>)
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
The tokens surrounding a node that are ignored and not accessible through the node’s own accessors. Use this if you want to get surrounding comments or whitespace. Returns a tuple of the leading and trailing trivia. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for Stmt<'a>
impl<'a> UnwindSafe for Stmt<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more