#[non_exhaustive]pub enum LoopKind {
While,
Until,
CStyleFor,
Foreach,
}Expand description
Loop surface form for a LoopShell.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
While
while (...) { ... }.
Until
until (...) { ... }.
CStyleFor
C-style for (init; cond; update) { ... }.
Foreach
foreach VAR (LIST) { ... }.
Trait Implementations§
impl Copy for LoopKind
impl Eq for LoopKind
impl StructuralPartialEq for LoopKind
Auto Trait Implementations§
impl Freeze for LoopKind
impl RefUnwindSafe for LoopKind
impl Send for LoopKind
impl Sync for LoopKind
impl Unpin for LoopKind
impl UnsafeUnpin for LoopKind
impl UnwindSafe for LoopKind
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