[][src]Struct full_moon::ast::Do

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

A do block, such as do ... end This is not used for things like while true do end, only those on their own

Implementations

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

pub fn new() -> Self[src]

Creates an empty Do

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

The do token

pub fn block(&self) -> &Block<'a>[src]

The code inside the do ... end

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

The end token

pub fn with_do_token(self, do_token: Cow<'a, TokenReference<'a>>) -> Self[src]

Returns a new Do with the given do token

pub fn with_block(self, block: Block<'a>) -> Self[src]

Returns a new Do with the given block

pub fn with_end_token(self, end_token: Cow<'a, TokenReference<'a>>) -> Self[src]

Returns a new Do with the given end token

Trait Implementations

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

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

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

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

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

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

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

type Owned = Do<'static>

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

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

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

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for Do<'a>

impl<'a> Send for Do<'a>

impl<'a> Sync for Do<'a>

impl<'a> Unpin for Do<'a>

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