fn copied<T>(self) -> Copied<Self>
    where
        T: Copy + Send + 'a,
        Self: ParallelIterator<'a, Item = &'a T>,
    {
        Copied::new(self)
    }
/// Creates an iterator which copies all of its elements.  This may be
/// useful when you have an iterator over `&T`, but you need `T`, and
/// that type implements `Copy`. See also [`cloned()`].
///
/// [`cloned()`]: #method.cloned
///
/// # Examples
///
/// ```
/// use asparit::*;
///
/// let a = [1, 2, 3];
///
/// let v_copied: Vec<_> = a.par_iter().copied().collect().exec();
///
/// // copied is the same as .map(|&x| x), for integers
/// let v_map: Vec<_> = a.par_iter().map(|&x| x).collect().exec();
///
/// assert_eq!(v_copied, vec![1, 2, 3]);
/// assert_eq!(v_map, vec![1, 2, 3]);
/// ```
Creates an iterator which copies all of its elements.


Creates an iterator which copies all of its elements .
fn copied<T>(self) -> Copied<Self>
    where
        T: Copy + Send + 'a,
        Self: ParallelIterator<'a, Item = &'a T>,
    {
        Copied::new(self)
    }
fn copied < T > ( self ) -> Copied < Self > where T : Copy + Send + ' a , Self : ParallelIterator < ' a , Item = & ' a T > , { Copied :: new ( self ) }
Creates an iterator which copies all of its elements.
Creates an iterator which copies all of its elements .
self
self
examples




let v_copied: Vec<_> = a.par_iter().copied().collect().exec().

copied is the same as .map(|&x| x), for integers
let v_map: Vec<_> = a.par_iter().map(|&x| x).collect().exec().


let v_copied : Vec<_ > = a . par_iter () . copied () . collect () . exec () . copied is the same as . map ( |&x| x ) for integers let v_map : Vec<_ > = a . par_iter () . map ( |&x| x ) . collect () . exec () .