[][src]Struct full_moon::ast::LocalAssignment

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

An assignment to a local variable, such as local x = 1

Methods

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

pub fn local_token(&self) -> &TokenReference<'a>[src]

The local token

pub fn equal_token(&self) -> Option<&TokenReference<'a>>[src]

The = token in between local x = y, if one exists

pub fn expr_list(&self) -> &Punctuated<'a, Expression<'a>>[src]

Returns the Punctuated sequence of the expressions being assigned. This is the 1, 2 part of local x, y = 1, 2

pub fn name_list(&self) -> &Punctuated<'a, TokenReference<'a>>[src]

Returns the Punctuated sequence of names being assigned to. This is the x, y part of local x, y = 1, 2

pub fn name_list_mut(&mut self) -> &mut Punctuated<'a, TokenReference<'a>>[src]

Returns a mutable Punctuated sequence of names being assigned to. This is the x, y part of local x, y = 1, 2

Trait Implementations

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

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

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

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

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

type Owned = LocalAssignment<'static>

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

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

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

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

Auto Trait Implementations

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

impl<'a> Send for LocalAssignment<'a>

impl<'a> Sync for LocalAssignment<'a>

impl<'a> Unpin for LocalAssignment<'a>

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