Trait broccoli::par::Joinable[][src]

pub trait Joinable: Clone + Send + Sync {
    fn join<A, B, RA, RB>(&self, oper_a: A, oper_b: B) -> (RA, RB)
    where
        A: FnOnce(&Self) -> RA + Send,
        B: FnOnce(&Self) -> RB + Send,
        RA: Send,
        RB: Send
; fn for_every<T, F>(&self, arr: &mut [T], func: F)
    where
        T: Send,
        F: Fn(&mut T) + Send + Copy
, { ... } }
Expand description

Trait defining the main primitive with which the _par functions will be parallelized. The trait is based off of rayon’s join function.

Required methods

Execute both closures potentially in parallel.

Provided methods

Execute function F on each element in parallel using Self::join.

Implementors