[][src]Enum full_moon::ast::Value

pub enum Value<'a> {
    Function((TokenReference<'a>, FunctionBody<'a>)),
    FunctionCall(FunctionCall<'a>),
    TableConstructor(TableConstructor<'a>),
    Number(TokenReference<'a>),
    ParseExpression(Expression<'a>),
    String(TokenReference<'a>),
    Symbol(TokenReference<'a>),
    Var(Var<'a>),
}

Values that cannot be used standalone, but as part of things such as statements

Variants

Function((TokenReference<'a>, FunctionBody<'a>))

An anonymous function, such as function() end)

FunctionCall(FunctionCall<'a>)

A call of a function, such as call()

TableConstructor(TableConstructor<'a>)

A table constructor, such as { 1, 2, 3 }

Number(TokenReference<'a>)

A number token, such as 3.3

ParseExpression(Expression<'a>)

An expression between parentheses, such as (3 + 2)

String(TokenReference<'a>)

A string token, such as "hello"

Symbol(TokenReference<'a>)

A symbol, such as true

Var(Var<'a>)

A more complex value, such as call().x

Trait Implementations

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

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

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

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

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

type Owned = Value<'static>

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

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

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

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

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Value<'a>

impl<'a> Send for Value<'a>

impl<'a> Sync for Value<'a>

impl<'a> Unpin for Value<'a>

impl<'a> !UnwindSafe for Value<'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: 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, 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.