pub(crate) enum FilterSelection<'a> {
None,
All {
len: usize,
},
Slices(FilterIterator<Copied<Iter<'a, (usize, usize)>>, SlicesIterator<'a>>),
Indices(FilterIterator<Copied<Iter<'a, usize>>, IndexIterator<'a>>),
}Expand description
Borrowed description of which rows a FilterPredicate selects.
This is used for filtering multiple arrays with the same predicate without having to clone the predicate’s internal data structures (e.g. the list of indices or slices).
Variants§
None
No rows are selected
All
All len rows are selected
Slices(FilterIterator<Copied<Iter<'a, (usize, usize)>>, SlicesIterator<'a>>)
Iterator of (start, end) slices, each a run of contiguous selected rows
Indices(FilterIterator<Copied<Iter<'a, usize>>, IndexIterator<'a>>)
Iterator of the indices of the selected rows
Auto Trait Implementations§
impl<'a> Freeze for FilterSelection<'a>
impl<'a> RefUnwindSafe for FilterSelection<'a>
impl<'a> Send for FilterSelection<'a>
impl<'a> Sync for FilterSelection<'a>
impl<'a> Unpin for FilterSelection<'a>
impl<'a> UnsafeUnpin for FilterSelection<'a>
impl<'a> UnwindSafe for FilterSelection<'a>
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