pub(crate) enum FilterIterator<M, I> {
Materialized(M),
Lazy(I),
}Expand description
Holds either materialized rows or a lazy iterator.
This does not implement Iterator on purpose. Callers use
Self::for_each or Self::try_for_each so the enum is matched once
before the loop, not once per row in next.
Variants§
Implementations§
Auto Trait Implementations§
impl<M, I> Freeze for FilterIterator<M, I>
impl<M, I> RefUnwindSafe for FilterIterator<M, I>where
M: RefUnwindSafe,
I: RefUnwindSafe,
impl<M, I> Send for FilterIterator<M, I>
impl<M, I> Sync for FilterIterator<M, I>
impl<M, I> Unpin for FilterIterator<M, I>
impl<M, I> UnsafeUnpin for FilterIterator<M, I>where
M: UnsafeUnpin,
I: UnsafeUnpin,
impl<M, I> UnwindSafe for FilterIterator<M, I>where
M: UnwindSafe,
I: UnwindSafe,
Blanket Implementations§
impl<T> Allocation for T
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