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
Every value between two numbers
Fields
§
from: Box<Expression>Start of the range, included
§
to: Box<Expression>End of the range, included
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 duplicate 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
impl StructuralPartialEq for ForIterator
Auto Trait Implementations§
impl Freeze for ForIterator
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