pub struct ArithmeticForClauseCommand {
pub initializer: Option<UnexpandedArithmeticExpr>,
pub condition: Option<UnexpandedArithmeticExpr>,
pub updater: Option<UnexpandedArithmeticExpr>,
pub body: DoGroupCommand,
}Expand description
An arithmetic for clause, which loops until an arithmetic condition is reached.
Fields§
§initializer: Option<UnexpandedArithmeticExpr>Optionally, the initializer expression evaluated before the first iteration of the loop.
condition: Option<UnexpandedArithmeticExpr>Optionally, the expression evaluated as the exit condition of the loop.
updater: Option<UnexpandedArithmeticExpr>Optionally, the expression evaluated after each iteration of the loop.
body: DoGroupCommandThe command to run for each iteration of the loop.
Trait Implementations§
Source§impl Clone for ArithmeticForClauseCommand
impl Clone for ArithmeticForClauseCommand
Source§fn clone(&self) -> ArithmeticForClauseCommand
fn clone(&self) -> ArithmeticForClauseCommand
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 ArithmeticForClauseCommand
impl Debug for ArithmeticForClauseCommand
Auto Trait Implementations§
impl Freeze for ArithmeticForClauseCommand
impl RefUnwindSafe for ArithmeticForClauseCommand
impl Send for ArithmeticForClauseCommand
impl Sync for ArithmeticForClauseCommand
impl Unpin for ArithmeticForClauseCommand
impl UnwindSafe for ArithmeticForClauseCommand
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