Enum full_moon::ast::Stmt[][src]

#[non_exhaustive]pub enum Stmt<'a> {
    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>),
}

A statement that stands alone

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
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

impl<'a> Clone for Stmt<'a>[src]

impl<'a> Debug for Stmt<'a>[src]

impl<'de: 'a, 'a> Deserialize<'de> for Stmt<'a>[src]

impl<'a> Display for Stmt<'a>[src]

impl<'a> Node<'a> for Stmt<'a>[src]

impl<'a> Owned for Stmt<'a>[src]

type Owned = Stmt<'static>

What an owned version of the object looks like. Usually contains a 'static lifetime.

impl<'a> PartialEq<Stmt<'a>> for Stmt<'a>[src]

impl<'a> Serialize for Stmt<'a>[src]

impl<'a> StructuralPartialEq for Stmt<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Stmt<'a>

impl<'a> Send for Stmt<'a>

impl<'a> Sync for Stmt<'a>

impl<'a> Unpin for Stmt<'a>

impl<'a> UnwindSafe for Stmt<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> Conv for T

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> TryConv for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.