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