Struct dpc_pariter::ParallelFilterBuilder
source · [−]pub struct ParallelFilterBuilder<I>(_)
where
I: Iterator;
Implementations
sourceimpl<I> ParallelFilterBuilder<I> where
I: Iterator,
impl<I> ParallelFilterBuilder<I> where
I: Iterator,
pub fn new(iter: I) -> Self
pub fn threads(self, num: usize) -> Self
pub fn buffer_size(self, num: usize) -> Self
pub fn with<F>(self, f: F) -> ParallelFilter<I>ⓘNotable traits for ParallelFilter<I>impl<I> Iterator for ParallelFilter<I> where
I: Iterator,
I::Item: Send, type Item = I::Item;
where
I: Iterator + 'static,
F: 'static + Send + Clone,
I::Item: Send + 'static,
F: FnMut(&I::Item) -> bool,
I: Iterator,
I::Item: Send, type Item = I::Item;
pub fn with_scoped<'env, 'scope, F>(
self,
scope: &'scope Scope<'env>,
f: F
) -> ParallelFilter<I>ⓘNotable traits for ParallelFilter<I>impl<I> Iterator for ParallelFilter<I> where
I: Iterator,
I::Item: Send, type Item = I::Item;
where
I: Iterator + 'env,
F: 'env + Send + Clone,
I::Item: Send + 'env,
F: FnMut(&I::Item) -> bool + 'env + Send,
I: Iterator,
I::Item: Send, type Item = I::Item;
Auto Trait Implementations
impl<I> RefUnwindSafe for ParallelFilterBuilder<I> where
I: RefUnwindSafe,
impl<I> Send for ParallelFilterBuilder<I> where
I: Send,
impl<I> Sync for ParallelFilterBuilder<I> where
I: Sync,
impl<I> Unpin for ParallelFilterBuilder<I> where
I: Unpin,
impl<I> UnwindSafe for ParallelFilterBuilder<I> where
I: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more