WorkStealingArray

Trait WorkStealingArray 

Source
pub trait WorkStealingArray<A, S, D>
where A: Clone + Send + Sync + 'static, S: RawData<Elem = A>, D: Dimension,
{ // Required method fn work_stealing_map<F, B>(&self, f: F) -> CoreResult<Array<B, D>> where B: Clone + Send + 'static, F: Fn(&A) -> Result<B, CoreError> + Send + Sync + Clone + 'static; }

Required Methods§

Source

fn work_stealing_map<F, B>(&self, f: F) -> CoreResult<Array<B, D>>
where B: Clone + Send + 'static, F: Fn(&A) -> Result<B, CoreError> + Send + Sync + Clone + 'static,

Map a function over the array elements in parallel

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.

Implementors§

Source§

impl<A, S, D> WorkStealingArray<A, S, D> for ArrayBase<S, D>
where A: Clone + Send + Sync + 'static, S: RawData<Elem = A> + Data, D: Dimension + Clone + Send + 'static,