simple_parallel 0.3.0

Straight-forward functions and types for basic data parallel operations, including parallel maps, for loops and thread pools.
1
2
3
4
5
6
7
8
9
pub trait FnBox<A> {
    fn call_box(self: Box<Self>, arg: A);
}

impl<F: FnOnce(A), A> FnBox<A> for F {
    fn call_box(self: Box<Self>, arg: A) {
        (*self)(arg)
    }
}