Struct dpc_pariter::ParallelMapBuilder
source · [−]pub struct ParallelMapBuilder<I> where
I: Iterator, { /* private fields */ }
Implementations
sourceimpl<I> ParallelMapBuilder<I> where
I: Iterator,
impl<I> ParallelMapBuilder<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, O>(self, f: F) -> ParallelMap<I, O>ⓘNotable traits for ParallelMap<I, O>impl<I, O> Iterator for ParallelMap<I, O> where
I: Iterator,
I::Item: Send,
O: Send, type Item = O;
where
I: Iterator + 'static,
F: 'static + Send + Clone,
O: Send + 'static,
I::Item: Send + 'static,
F: FnMut(I::Item) -> O,
I: Iterator,
I::Item: Send,
O: Send, type Item = O;
pub fn with_scoped<'env, 'scope, F, O>(
self,
scope: &'scope Scope<'env>,
f: F
) -> ParallelMap<I, O>ⓘNotable traits for ParallelMap<I, O>impl<I, O> Iterator for ParallelMap<I, O> where
I: Iterator,
I::Item: Send,
O: Send, type Item = O;
where
I: Iterator + 'env,
F: 'env + Send + Clone,
O: Send + 'env,
I::Item: Send + 'env,
F: FnMut(I::Item) -> O,
I: Iterator,
I::Item: Send,
O: Send, type Item = O;
Auto Trait Implementations
impl<I> RefUnwindSafe for ParallelMapBuilder<I> where
I: RefUnwindSafe,
impl<I> Send for ParallelMapBuilder<I> where
I: Send,
impl<I> Sync for ParallelMapBuilder<I> where
I: Sync,
impl<I> Unpin for ParallelMapBuilder<I> where
I: Unpin,
impl<I> UnwindSafe for ParallelMapBuilder<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