pub trait ParallelIteratorExt: ParallelIterator {
// Required methods
fn with_threads(self, numthreads: usize) -> Self;
fn with_thread_init<F>(self, init: F) -> Self
where F: Fn() + Send + Sync + 'static;
}Expand description
Parallel iterator with thread pool integration
Required Methods§
Sourcefn with_threads(self, numthreads: usize) -> Self
fn with_threads(self, numthreads: usize) -> Self
Configure the number of threads for this operation
Sourcefn with_thread_init<F>(self, init: F) -> Self
fn with_thread_init<F>(self, init: F) -> Self
Configure thread-local initialization
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".