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


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




let v_cloned: Vec<_> = a.par_iter().cloned().collect().exec().

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


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