pub enum HasMore {
Yes(usize),
Maybe,
No,
}
Expand description
Returns whether or not the concurrent iterator has more elements to yield. Response is guaranteed to be true.
Yes(n)
: the iterator will certainly yieldn
more elements.Maybe
: the iterator might or might not yield any more element. A concurrent iterator created from an iterator with a non-trivial filter could be considered as an example. There certainly exists elements to evaluate, but not guaranteed to return one.No
: the iterator has terminated, and will certainly not yield any more elements.
Variants§
Yes(usize)
The iterator will certainly yield n
more elements.
Maybe
The iterator might or might not yield any more element. A concurrent iterator created from an iterator with a non-trivial filter could be considered as an example. There certainly exists elements to evaluate, but not guaranteed to return one.
No
The iterator has terminated, and will certainly not yield any more elements.
Trait Implementations§
impl Copy for HasMore
impl Eq for HasMore
impl StructuralPartialEq for HasMore
Auto Trait Implementations§
impl Freeze for HasMore
impl RefUnwindSafe for HasMore
impl Send for HasMore
impl Sync for HasMore
impl Unpin for HasMore
impl UnwindSafe for HasMore
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