#[non_exhaustive]pub struct DoWhileStmt<'arena, 'src> {
pub body: &'arena Stmt<'arena, 'src>,
pub condition: Expr<'arena, 'src>,
}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: &'arena Stmt<'arena, 'src>Loop body.
condition: Expr<'arena, 'src>Condition checked after each iteration.
Implementations§
Trait Implementations§
Source§impl<'arena, 'src> Debug for DoWhileStmt<'arena, 'src>
impl<'arena, 'src> Debug for DoWhileStmt<'arena, 'src>
Auto Trait Implementations§
impl<'arena, 'src> !RefUnwindSafe for DoWhileStmt<'arena, 'src>
impl<'arena, 'src> !Send for DoWhileStmt<'arena, 'src>
impl<'arena, 'src> !Sync for DoWhileStmt<'arena, 'src>
impl<'arena, 'src> !UnwindSafe for DoWhileStmt<'arena, 'src>
impl<'arena, 'src> Freeze for DoWhileStmt<'arena, 'src>
impl<'arena, 'src> Unpin for DoWhileStmt<'arena, 'src>
impl<'arena, 'src> UnsafeUnpin for DoWhileStmt<'arena, 'src>
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