pub struct ForN {
pub name: Arc<String>,
pub start: Option<Expression>,
pub end: Expression,
pub block: Block,
pub label: Option<Arc<String>>,
pub source_range: Range,
}
Expand description
For-N expression.
Fields§
§name: Arc<String>
Name of index variable.
start: Option<Expression>
Start expression.
This is evaluated before starting the loop.
end: Expression
End expression.
This is evaluated before starting the loop.
block: Block
Bloc expression.
label: Option<Arc<String>>
Loop label.
source_range: Range
The range in source.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ForN
impl Send for ForN
impl Sync for ForN
impl Unpin for ForN
impl !UnwindSafe for ForN
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