Trait ParMap

Source
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§

Source

fn par_map_inplace<F>(&mut self, f: F)
where F: Fn(&mut Self::Item) + Sync + Send,

Source

fn par_mapv_inplace<F>(&mut self, f: F)
where F: Fn(Self::Item) -> Self::Item + Sync + Send, Self::Item: Clone,

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.

Implementations on Foreign Types§

Source§

impl<A, S, D> ParMap for ArrayBase<S, D>
where S: DataMut<Elem = A>, D: Dimension, A: Send + Sync,

Source§

type Item = A

Source§

fn par_map_inplace<F>(&mut self, f: F)
where F: Fn(&mut Self::Item) + Sync + Send,

Source§

fn par_mapv_inplace<F>(&mut self, f: F)
where F: Fn(Self::Item) -> Self::Item + Sync + Send, Self::Item: Clone,

Implementors§