Function rayon::split [] [src]

pub fn split<D, S>(data: D, splitter: S) -> Split<D, S> where
    D: Send,
    S: Fn(D) -> (D, Option<D>) + Sync

The split function takes arbitrary data and a closure that knows how to split it, and turns this into a ParallelIterator.