pub struct ForStatement {
pub initializer: Option<ForInit>,
pub condition: Option<Box<Expression>>,
pub update: Option<Box<Expression>>,
pub body: Vec<Statement>,
pub location: SourceLocation,
}Fields§
§initializer: Option<ForInit>§condition: Option<Box<Expression>>Condition expression
update: Option<Box<Expression>>Update expression
body: Vec<Statement>Loop body (can be single statement or compound)
location: SourceLocationTrait Implementations§
Source§impl Clone for ForStatement
impl Clone for ForStatement
Source§impl Debug for ForStatement
impl Debug for ForStatement
Auto Trait Implementations§
impl Freeze for ForStatement
impl RefUnwindSafe for ForStatement
impl Send for ForStatement
impl Sync for ForStatement
impl Unpin for ForStatement
impl UnsafeUnpin for ForStatement
impl UnwindSafe for ForStatement
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