Function rayon::iter::unzip::partition

source ·
pub(super) fn partition<I, A, B, P>(pi: I, predicate: P) -> (A, B)where
    I: ParallelIterator,
    A: Default + Send + ParallelExtend<I::Item>,
    B: Default + Send + ParallelExtend<I::Item>,
    P: Fn(&I::Item) -> bool + Sync + Send,
Expand description

Partitions the items of a parallel iterator into a pair of arbitrary ParallelExtend containers.

This is called by ParallelIterator::partition.