Enum boreal_parser::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 more