Function rayon::iter::unzip::unzip_indexed

source ·
pub(super) fn unzip_indexed<I, A, B, CA, CB>(
    pi: I,
    left: CA,
    right: CB
) -> (CA::Result, CB::Result)where
    I: IndexedParallelIterator<Item = (A, B)>,
    CA: Consumer<A>,
    CB: Consumer<B>,
    A: Send,
    B: Send,
Expand description

Unzips an IndexedParallelIterator into two arbitrary Consumers.

This is called by super::collect::unzip_into_vecs.