[][src]Enum luaparse::ast::FunctionDeclarationStat

pub enum FunctionDeclarationStat<'a> {
    Local {
        local: TokenReference<'a>,
        function: TokenReference<'a>,
        name: Name<'a>,
        body: FunctionBody<'a>,
    },
    Nonlocal {
        function: TokenReference<'a>,
        name: FunctionName<'a>,
        body: FunctionBody<'a>,
    },
}

A function declaration statement.

Variants

Local

A local function declaration.

Fields of Local

local: TokenReference<'a>

A reference to the Symbol::Local token.

function: TokenReference<'a>

A reference to the Symbol::Function token.

name: Name<'a>

The function name.

body: FunctionBody<'a>

The function body.

Nonlocal

A non-local function declaration.

Fields of Nonlocal

function: TokenReference<'a>

A reference to the Symbol::Function token.

name: FunctionName<'a>

The function name.

body: FunctionBody<'a>

The function body.

Trait Implementations

impl<'a> AstDescend<'a> for FunctionDeclarationStat<'a>[src]

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

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

impl<'_> Display for FunctionDeclarationStat<'_>[src]

impl<'_> HasSpan for FunctionDeclarationStat<'_>[src]

Auto Trait Implementations

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> From<T> for T[src]

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

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, 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.