[][src]Struct luaparse::ast::FunctionBody

pub struct FunctionBody<'a> {
    pub params: ParenthesizedList<'a, Name<'a>>,
    pub vararg: Option<Vararg<'a>>,
    pub block: Box<Block<'a>>,
    pub end: TokenReference<'a>,
}

A function body.

Fields

params: ParenthesizedList<'a, Name<'a>>

A parenthesized list of function parameters, excluding the vararg specifier (...).

If the function has a vararg specifier, the comma that precedes it will be stored in the last name-token pair.

vararg: Option<Vararg<'a>>

The vararg specifier.

block: Box<Block<'a>>

The actual contents of the function.

end: TokenReference<'a>

A reference to the Symbol::End token.

Trait Implementations

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

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

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

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

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for FunctionBody<'a>

impl<'a> Send for FunctionBody<'a>

impl<'a> Sync for FunctionBody<'a>

impl<'a> Unpin for FunctionBody<'a>

impl<'a> UnwindSafe for FunctionBody<'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> 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.