Function broccoli::new_par[][src]

pub fn new_par<T: Aabb + Send + Sync>(
    joiner: impl Joinable,
    bots: &mut [T]
) -> Tree<'_, T> where
    T::Num: Send + Sync
Expand description

Create a Tree in parallel.

Examples

 let mut bots = [axgeom::rect(0,10,0,10)];
 let tree = broccoli::new_par(broccoli::par::RayonJoin,&mut bots);