pub struct For {
pub init: Expression,
pub cond: Expression,
pub step: Expression,
pub block: Block,
pub label: Option<Arc<String>>,
pub source_range: Range,
}
Expand description
For-expression.
Fields§
§init: Expression
The initial expression.
cond: Expression
Expression evaluated for determining whether to continue or not.
step: Expression
Expression evaluated at each step.
block: Block
Block expression.
label: Option<Arc<String>>
Loop label.
source_range: Range
The range in source.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for For
impl Send for For
impl Sync for For
impl Unpin for For
impl !UnwindSafe for For
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