[−][src]Struct full_moon::ast::NumericFor
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.
fn owned(&self) -> Self::Owned
[src]
impl<'a> Node for NumericFor<'a>
[src]
fn start_position(&self) -> Option<Position>
[src]
fn end_position(&self) -> Option<Position>
[src]
fn range(&self) -> Option<(Position, Position)>
[src]
fn surrounding_ignore_tokens<'ast>(
&self,
ast: &'ast Ast<'ast>
) -> Option<(Vec<&Token<'ast>>, Vec<&Token<'ast>>)>
[src]
&self,
ast: &'ast Ast<'ast>
) -> Option<(Vec<&Token<'ast>>, Vec<&Token<'ast>>)>
impl<'a> Clone for NumericFor<'a>
[src]
fn clone(&self) -> NumericFor<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> PartialEq<NumericFor<'a>> for NumericFor<'a>
[src]
fn eq(&self, other: &NumericFor<'a>) -> bool
[src]
fn ne(&self, other: &NumericFor<'a>) -> bool
[src]
impl<'a> Debug for NumericFor<'a>
[src]
impl<'a> Serialize for NumericFor<'a>
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de: 'a, 'a> Deserialize<'de> for NumericFor<'a>
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl<'a> Unpin for NumericFor<'a>
impl<'a> Sync for NumericFor<'a>
impl<'a> Send for NumericFor<'a>
impl<'a> !UnwindSafe for NumericFor<'a>
impl<'a> !RefUnwindSafe for NumericFor<'a>
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,