fn collect<T>(self) -> Collect<Self, T>
    where
        T: FromParallelIterator<'a, Self::Item>,
    {
        Collect::new(self)
    }
/// Creates a fresh collection containing all the elements produced
/// by this parallel iterator.
///
/// You may prefer [`collect_into_vec()`] implemented on
/// [`IndexedParallelIterator`], if your underlying iterator also implements
/// it. [`collect_into_vec()`] allocates efficiently with precise knowledge
/// of how many elements the iterator contains, and even allows you to reuse
/// an existing vector's backing store rather than allocating a fresh vector.
///
/// [`IndexedParallelIterator`]: trait.IndexedParallelIterator.html
/// [`collect_into_vec()`]:
///     trait.IndexedParallelIterator.html#method.collect_into_vec
///
/// # Examples
///
/// ```
/// use asparit::*;
///
/// let sync_vec: Vec<_> = (0..100).into_iter().collect();
///
/// let async_vec: Vec<_> = (0..100).into_par_iter().collect().exec();
///
/// assert_eq!(sync_vec, async_vec);
/// ```
Creates a fresh collection containing all the elements produced
by this parallel iterator.

You may prefer [`collect_into_vec()`] implemented on
[`IndexedParallelIterator`], if your underlying iterator also implements
it. [`collect_into_vec()`] allocates efficiently with precise knowledge
of how many elements the iterator contains, and even allows you to reuse
an existing vector's backing store rather than allocating a fresh vector.


Creates a fresh collection containing all the elements produced by this parallel iterator . You may prefer [ ` collect_into_vec () ` ] implemented on [ ` IndexedParallelIterator ` ] if your underlying iterator also implements it . [ ` collect_into_vec () ` ] allocates efficiently with precise knowledge of how many elements the iterator contains and even allows you to reuse an existing vector ' s backing store rather than allocating a fresh vector .
fn collect<T>(self) -> Collect<Self, T>
    where
        T: FromParallelIterator<'a, Self::Item>,
    {
        Collect::new(self)
    }
fn collect < T > ( self ) -> Collect < Self , T > where T : FromParallelIterator < ' a , Self :: Item > , { Collect :: new ( self ) }
Creates a fresh collection containing all the elements produced
by this parallel iterator.
Creates a fresh collection containing all the elements produced by this parallel iterator .
self
self
examples
None