#[non_exhaustive]pub enum LoopMode {
Count(usize),
While(FilterPredicate),
}Expand description
How the loop terminates.
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.
Count(usize)
Fixed iteration count.
While(FilterPredicate)
While a runtime predicate evaluates to true.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for LoopMode
impl !UnwindSafe for LoopMode
impl Freeze for LoopMode
impl Send for LoopMode
impl Sync for LoopMode
impl Unpin for LoopMode
impl UnsafeUnpin for LoopMode
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