pub(super) fn collect_into_vec<I, T>(pi: I, v: &mut Vec<T>)
where
    I: IndexedParallelIterator<Item = T>,
    T: Send,
{
    v.truncate(0); // clear any old data
    let mut collect = Collect::new(v, pi.len());
    pi.drive(collect.as_consumer());
    collect.complete();
}
/// Collects the results of the exact iterator into the specified vector.
///
/// This is called by `IndexedParallelIterator::collect_into_vec`.
Collects the results of the exact iterator into the specified vector.
Collects the results of the exact iterator into the specified vector .
pub(super) fn collect_into_vec<I, T>(pi: I, v: &mut Vec<T>)
where
    I: IndexedParallelIterator<Item = T>,
    T: Send,
{
    v.truncate(0); // clear any old data
    let mut collect = Collect::new(v, pi.len());
    pi.drive(collect.as_consumer());
    collect.complete();
}
pub ( super ) fn collect_into_vec < I , T > ( pi : I , v : & mut Vec < T > ) where I : IndexedParallelIterator < Item = T > , T : Send , { v . truncate ( 0 ) ; // clear any old data let mut collect = Collect :: new ( v , pi . len ( ) ) ; pi . drive ( collect . as_consumer ( ) ) ; collect . complete ( ) ; }
Collects the results of the exact iterator into the specified vector.
Collects the results of the exact iterator into the specified vector .
pi
I
v
&mut Vec<T>