pub(super) fn unzip_into_vecs<I, A, B>(pi: I, left: &mut Vec<A>, right: &mut Vec<B>)
where
    I: IndexedParallelIterator<Item = (A, B)>,
    A: Send,
    B: Send,
{
    // clear any old data
    left.truncate(0);
    right.truncate(0);

    let len = pi.len();
    let mut left = Collect::new(left, len);
    let mut right = Collect::new(right, len);

    unzip_indexed(pi, left.as_consumer(), right.as_consumer());

    left.complete();
    right.complete();
}
/// Unzips the results of the exact iterator into the specified vectors.
///
/// This is called by `IndexedParallelIterator::unzip_into_vecs`.
Unzips the results of the exact iterator into the specified vectors.
Unzips the results of the exact iterator into the specified vectors .
pub(super) fn unzip_into_vecs<I, A, B>(pi: I, left: &mut Vec<A>, right: &mut Vec<B>)
where
    I: IndexedParallelIterator<Item = (A, B)>,
    A: Send,
    B: Send,
{
    // clear any old data
    left.truncate(0);
    right.truncate(0);
    let len = pi.len();
    let mut left = Collect::new(left, len);
    let mut right = Collect::new(right, len);
    unzip_indexed(pi, left.as_consumer(), right.as_consumer());
    left.complete();
    right.complete();
}
pub ( super ) fn unzip_into_vecs < I , A , B > ( pi : I , left : & mut Vec < A > , right : & mut Vec < B > ) where I : IndexedParallelIterator < Item = ( A , B ) > , A : Send , B : Send , { // clear any old data left . truncate ( 0 ) ; right . truncate ( 0 ) ; let len = pi . len ( ) ; let mut left = Collect :: new ( left , len ) ; let mut right = Collect :: new ( right , len ) ; unzip_indexed ( pi , left . as_consumer ( ) , right . as_consumer ( ) ) ; left . complete ( ) ; right . complete ( ) ; }
Unzips the results of the exact iterator into the specified vectors.
Unzips the results of the exact iterator into the specified vectors .
pi
I
left
&mut Vec<A>
right
&mut Vec<B>