[][src]Struct full_moon::ast::NumericFor

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

A numeric for loop, such as for index = 1, 10 do end

Methods

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

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

The for token

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

The index identity, index in the initial example

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

The = token

pub fn start(&self) -> &Expression<'a>[src]

The starting point, 1 in the initial example

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

The comma in between the starting point and end point for _ = 1, 10 do ^

pub fn end(&self) -> &Expression<'a>[src]

The ending point, 10 in the initial example

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

The comma in between the ending point and limit, if one exists for _ = 0, 10, 2 do ^

pub fn step(&self) -> Option<&Expression<'a>>[src]

The step if one exists, 2 in for index = 0, 10, 2 do end

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

The do token

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

The code inside the for loop

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

The end token

Trait Implementations

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

type Owned = NumericFor<'static>

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

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

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

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

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

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

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

Auto Trait Implementations

impl<'a> Send for NumericFor<'a>

impl<'a> Sync for NumericFor<'a>

impl<'a> Unpin for NumericFor<'a>

impl<'a> !UnwindSafe for NumericFor<'a>

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

Blanket Implementations

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.

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]