pub trait ParallelForEachIter<I, V, F>{
// Provided method
fn for_each(self, f: F) { ... }
}Expand description
ParallelForEachIter allows calling the .for_each(f) to run a Fn function on type implementing AtomicIterator
use parallel_task::prelude::*;
(0..100_000).collect::<Vec<i32>>().parallel_iter().for_each(|val|{ print!(" {}",val);});
assert_eq!(1,1)Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.