Enum boreal_parser::expression::ForIterator
source · pub enum ForIterator {
Identifier(Identifier),
Range {
from: Box<Expression>,
to: Box<Expression>,
},
List(Vec<Expression>),
}Expand description
Iterator for a ‘for’ expression over an identifier.
Variants§
Identifier(Identifier)
Identifier to pick values from.
Range
Fields
§
from: Box<Expression>Start of the range, included
§
to: Box<Expression>End of the range, included
Every value between two numbers
List(Vec<Expression>)
List of values
Trait Implementations§
source§impl Clone for ForIterator
impl Clone for ForIterator
source§fn clone(&self) -> ForIterator
fn clone(&self) -> ForIterator
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ForIterator
impl Debug for ForIterator
source§impl PartialEq for ForIterator
impl PartialEq for ForIterator
source§fn eq(&self, other: &ForIterator) -> bool
fn eq(&self, other: &ForIterator) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ForIterator
Auto Trait Implementations§
impl RefUnwindSafe for ForIterator
impl Send for ForIterator
impl Sync for ForIterator
impl Unpin for ForIterator
impl UnwindSafe for ForIterator
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more