pub struct WhileStmt {
pub condition: Expr,
pub body: Box<Stmt>,
pub uses_alternative: bool,
}Expand description
A while loop.
Fields§
§condition: ExprThe loop condition.
body: Box<Stmt>The loop body.
uses_alternative: boolWhether the while: ... endwhile; syntax is used.
Trait Implementations§
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