#[non_exhaustive]pub struct DoWhileStmt {
pub body: Box<Stmt>,
pub condition: Expr,
}Expand description
A do ... while loop.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.body: Box<Stmt>The loop body.
condition: ExprThe loop condition.
Implementations§
Trait Implementations§
Source§impl Clone for DoWhileStmt
impl Clone for DoWhileStmt
Source§impl Debug for DoWhileStmt
impl Debug for DoWhileStmt
Auto Trait Implementations§
impl Freeze for DoWhileStmt
impl RefUnwindSafe for DoWhileStmt
impl Send for DoWhileStmt
impl Sync for DoWhileStmt
impl Unpin for DoWhileStmt
impl UnsafeUnpin for DoWhileStmt
impl UnwindSafe for DoWhileStmt
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