pub enum LoopCount {
Infinite,
Exactly(u32),
}Variants
Infinite
Loops infinitely.
Exactly(u32)
Loops the specified amount of times.
Implementations
sourceimpl LoopCount
impl LoopCount
sourcepub const fn count_or_zero(self) -> u32
pub const fn count_or_zero(self) -> u32
Returns the exact number of times this loop should be repeated or 0.
Trait Implementations
impl Copy for LoopCount
impl Eq for LoopCount
impl StructuralEq for LoopCount
impl StructuralPartialEq for LoopCount
Auto Trait Implementations
impl RefUnwindSafe for LoopCount
impl Send for LoopCount
impl Sync for LoopCount
impl Unpin for LoopCount
impl UnwindSafe for LoopCount
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more