Struct Cloned

#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct Cloned<I> { /* private fields */ }

Cloned is an iterator that clones the elements of an underlying iterator.

This struct is created by the cloned() method on ParallelIterator

Trait Implementations

impl<'a, T, I> IndexedParallelIterator for Cloned<I> where I: IndexedParallelIterator<Item = &'a T>, T: 'a + Clone + Send + Sync,

fn drive<C>(self, consumer: C) -> C::Result
where
    C: Consumer<Self::Item>,
fn len(&self) -> usize
fn with_producer<CB>(self, callback: CB) -> CB::Output
where
    CB: ProducerCallback<Self::Item>,

impl<'a, T, I> ParallelIterator for Cloned<I> where I: ParallelIterator<Item = &'a T>, T: 'a + Clone + Send + Sync,

type Item = T;
fn drive_unindexed<C>(self, consumer: C) -> C::Result
where
    C: UnindexedConsumer<Self::Item>,
fn opt_len(&self) -> Option<usize>

impl<I: Clone> Clone for Cloned<I>

fn clone(&self) -> Self

impl<I: Debug> Debug for Cloned<I>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations

impl<I> Freeze for Cloned<I> where I: Freeze,

impl<I> RefUnwindSafe for Cloned<I> where I: RefUnwindSafe,

impl<I> Send for Cloned<I> where I: Send,

impl<I> Sync for Cloned<I> where I: Sync,

impl<I> Unpin for Cloned<I> where I: Unpin,

impl<I> UnsafeUnpin for Cloned<I> where I: UnsafeUnpin,

impl<I> UnwindSafe for Cloned<I> where I: UnwindSafe,

Blanket Implementations

impl<T> Any for Cloned<I> where T: 'static + ?Sized,

impl<T> Borrow<T> for Cloned<I> where T: ?Sized,

impl<T> BorrowMut<T> for Cloned<I> where T: ?Sized,

impl<T> CloneToUninit for Cloned<I> where T: Clone,

impl<T> From<T> for Cloned<I>

impl<T> IntoEither for Cloned<I>

impl<T> IntoParallelIterator for Cloned<I> where T: ParallelIterator,

impl<T> Pointable for Cloned<I>

impl<T> ToOwned for Cloned<I> where T: Clone,

impl<T, U> Into<U> for Cloned<I> where U: From<T>,

impl<T, U> TryFrom<U> for Cloned<I> where U: Into<T>,

impl<T, U> TryInto<U> for Cloned<I> where U: TryFrom<T>,