Skip to main content

ParApply4

Trait ParApply4 

Source
pub trait ParApply4<P1, P2, P3, P4> {
    // Required method
    fn par_apply<F>(self, function: F)
       where F: Fn(P1, P2, P3, P4) + 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, P2, P3, P4) + 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, P2, P3, P4> ParApply4<<P1 as NdProducer>::Item, <P2 as NdProducer>::Item, <P3 as NdProducer>::Item, <P4 as NdProducer>::Item> for Zip<(P1, P2, P3, P4), Dim>
where P1::Item: Send, P2::Item: Send, P3::Item: Send, P4::Item: Send, P1: Send + NdProducer<Dim = Dim>, P2: Send + NdProducer<Dim = Dim>, P3: Send + NdProducer<Dim = Dim>, P4: Send + NdProducer<Dim = Dim>,

Source§

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

Implementors§