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