Skip to main content

ParApply1

Trait ParApply1 

Source
pub trait ParApply1<P1> {
    // Required method
    fn par_apply<F>(self, function: F)
       where F: Fn(P1) + Sync + Send;
}
Expand description

The par_apply method for Zip.

This is a shorthand for using .into_par_iter().for_each() on Zip.

Required Methods§

Source

fn par_apply<F>(self, function: F)
where F: Fn(P1) + Sync + Send,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<Dim: Dimension, P1> ParApply1<<P1 as NdProducer>::Item> for Zip<(P1,), Dim>
where P1::Item: Send, P1: Send + NdProducer<Dim = Dim>,

Source§

fn par_apply<F>(self, function: F)
where F: Fn(P1::Item) + Sync + Send,

Implementors§