[][src]Enum full_moon::ast::FunctionArgs

pub enum FunctionArgs<'a> {
    Parentheses {
        parentheses: ContainedSpan<'a>,
        arguments: Punctuated<'a, Expression<'a>>,
    },
    String(Cow<'a, TokenReference<'a>>),
    TableConstructor(TableConstructor<'a>),
}

Arguments used for a function

Variants

Parentheses

Used when a function is called in the form of call(1, 2, 3)

Fields of Parentheses

parentheses: ContainedSpan<'a>

The (...) part of (1, 2, 3)

arguments: Punctuated<'a, Expression<'a>>

The 1, 2, 3 part of 1, 2, 3

String(Cow<'a, TokenReference<'a>>)

Used when a function is called in the form of call "foobar"

TableConstructor(TableConstructor<'a>)

Used when a function is called in the form of call { 1, 2, 3 }

Trait Implementations

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

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

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

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

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

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

type Owned = FunctionArgs<'static>

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

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

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

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for FunctionArgs<'a>

impl<'a> Send for FunctionArgs<'a>

impl<'a> Sync for FunctionArgs<'a>

impl<'a> Unpin for FunctionArgs<'a>

impl<'a> UnwindSafe for FunctionArgs<'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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.