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: ExpressionThe initial expression.
cond: ExpressionExpression evaluated for determining whether to continue or not.
step: ExpressionExpression evaluated at each step.
block: BlockBlock expression.
label: Option<Arc<String>>Loop label.
source_range: RangeThe range in source.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for For
impl !UnwindSafe for For
impl Freeze for For
impl Send for For
impl Sync for For
impl Unpin for For
impl UnsafeUnpin 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