Function rayon::iter::unzip::partition_map

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

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

This called by ParallelIterator::partition_map.