pub trait ParMap {
type Item;
// Required methods
fn par_map_inplace<F>(&mut self, f: F)
where F: Fn(&mut Self::Item) + Sync + Send;
fn par_mapv_inplace<F>(&mut self, f: F)
where F: Fn(Self::Item) -> Self::Item + Sync + Send,
Self::Item: Clone;
}
Expand description
Parallel versions of map_inplace
and mapv_inplace
.
Required Associated Types§
Required Methods§
fn par_map_inplace<F>(&mut self, f: F)
fn par_mapv_inplace<F>(&mut self, f: F)
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.