pub enum DoGuard {
Infinite,
PreUntil(Expr),
PreWhile(Expr),
PostUntil(Expr),
PostWhile(Expr),
}Expand description
Type of the DO loop.
Variants§
Infinite
Represents an infinite loop without guards.
PreUntil(Expr)
Represents a loop with an UNTIL guard in the DO clause.
PreWhile(Expr)
Represents a loop with a WHILE guard in the DO clause.
PostUntil(Expr)
Represents a loop with an UNTIL guard in the LOOP clause.
PostWhile(Expr)
Represents a loop with a WHILE guard in the LOOP clause.
Trait Implementations§
impl StructuralPartialEq for DoGuard
Auto Trait Implementations§
impl Freeze for DoGuard
impl RefUnwindSafe for DoGuard
impl Send for DoGuard
impl Sync for DoGuard
impl Unpin for DoGuard
impl UnwindSafe for DoGuard
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