[][src]Struct full_moon::ast::TableConstructor

pub struct TableConstructor<'a> { /* fields omitted */ }

A table being constructed, such as { 1, 2, 3 } or { a = 1 }

Implementations

impl<'a> TableConstructor<'a>[src]

pub fn new() -> Self[src]

Creates a new empty TableConstructor Brace tokens are followed by spaces, such that { fields }

pub fn braces(&self) -> &ContainedSpan<'a>[src]

The braces of the constructor

pub fn iter_fields(&self) -> impl Iterator<Item = &TableConstructorField<'a>>[src]

An iterator over the fields used to create the table

pub fn with_braces(self, braces: ContainedSpan<'a>) -> Self[src]

Returns a new TableConstructor with the given braces

pub fn with_fields(self, fields: Vec<TableConstructorField<'a>>) -> Self[src]

Returns a new TableConstructor with the given fields

Trait Implementations

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

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

impl<'_> Default for TableConstructor<'_>[src]

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

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

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

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

type Owned = TableConstructor<'static>

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

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

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

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for TableConstructor<'a>

impl<'a> Send for TableConstructor<'a>

impl<'a> Sync for TableConstructor<'a>

impl<'a> Unpin for TableConstructor<'a>

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