Struct full_moon::ast::lua52::Label[][src]

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

A label, such as ::label::.

Implementations

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

pub fn new(name: TokenReference<'a>) -> Self[src]

Creates a new Label with the given name

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

The :: symbol on the left hand side of the name

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

The name used for the label, the label part of ::label::

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

The :: symbol on the right hand side of the name

pub fn with_left_colons(self, left_colons: TokenReference<'a>) -> Self[src]

Returns a new Label with the given :: symbol on the left hand side

pub fn with_name(self, name: TokenReference<'a>) -> Self[src]

Returns a new Label with the given label name

pub fn with_right_colons(self, right_colons: TokenReference<'a>) -> Self[src]

Returns a new Label with the given :: symbol on the right hand side

Trait Implementations

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

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

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

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

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

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

type Owned = Label<'static>

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

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

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

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for Label<'a>

impl<'a> Send for Label<'a>

impl<'a> Sync for Label<'a>

impl<'a> Unpin for Label<'a>

impl<'a> UnwindSafe for Label<'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> Conv for T

impl<T> Conv for T

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

impl<T> FmtForward for T

impl<T> From<T> for T[src]

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

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

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> TryConv for T

impl<T> TryConv for T

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.