pub struct ParFor {
pub range: Range,
pub config: ParallelConfig,
}Expand description
Parallel for loop descriptor.
parFor(0..n, |i| {
// body executed in parallel
})Fields§
§range: RangeIteration range.
config: ParallelConfigParallel configuration.
Implementations§
Source§impl ParFor
impl ParFor
Sourcepub fn with_config(self, config: ParallelConfig) -> Self
pub fn with_config(self, config: ParallelConfig) -> Self
Set the parallel configuration.
Sourcepub fn chunk_assignments(&self) -> Vec<Range>
pub fn chunk_assignments(&self) -> Vec<Range>
Generate chunk assignments for workers.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParFor
impl RefUnwindSafe for ParFor
impl Send for ParFor
impl Sync for ParFor
impl Unpin for ParFor
impl UnsafeUnpin for ParFor
impl UnwindSafe for ParFor
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