[][src]Enum full_moon::ast::Field

pub enum Field<'a> {
    ExpressionKey {
        key: Box<Expression<'a>>,
        value: Box<Expression<'a>>,
    },
    NameKey {
        key: Box<Cow<'a, Token<'a>>>,
        value: Box<Expression<'a>>,
    },
    NoKey(Box<Expression<'a>>),
}

Fields of a TableConstructor

Variants

ExpressionKey

A key in the format of [expression] = value

Fields of ExpressionKey

key: Box<Expression<'a>>

The expression part of [expression] = value

value: Box<Expression<'a>>

The value part of [expression] = value

NameKey

A key in the format of name = value

Fields of NameKey

key: Box<Cow<'a, Token<'a>>>

The name part of name = value

value: Box<Expression<'a>>

The value part of name = value

NoKey(Box<Expression<'a>>)

A field with no key, just a value (such as "a" in { "a" })

Trait Implementations

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

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

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

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

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

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

Auto Trait Implementations

impl<'a> Send for Field<'a>

impl<'a> Sync for Field<'a>

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for T[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.

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

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

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

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