pub struct ForStmt {
pub leading_comments: Vec<Comment>,
pub for_span: Span,
pub paren_span: (Span, Span),
pub init: ForInit,
pub cond: Option<Expr>,
pub semi2_span: Option<Span>,
pub update: Vec<Expr>,
pub body: Box<Stmt>,
}Expand description
A for statement: for (init; cond; update) body.
Fields§
§leading_comments: Vec<Comment>§for_span: Span§paren_span: (Span, Span)§init: ForInit§cond: Option<Expr>§semi2_span: Option<Span>§update: Vec<Expr>§body: Box<Stmt>Implementations§
Trait Implementations§
impl Eq for ForStmt
impl StructuralPartialEq for ForStmt
Auto Trait Implementations§
impl Freeze for ForStmt
impl RefUnwindSafe for ForStmt
impl Send for ForStmt
impl Sync for ForStmt
impl Unpin for ForStmt
impl UnsafeUnpin for ForStmt
impl UnwindSafe for ForStmt
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