Struct RepeatN

pub struct RepeatN<T> { /* private fields */ }

Iterator adaptor for the repeat_n() function.

Trait Implementations

impl<T> IndexedParallelIterator for RepeatN<T> where T: Clone + Send,

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

impl<T> ParallelIterator for RepeatN<T> where T: Clone + Send,

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

impl<T: Clone> Clone for RepeatN<T>

fn clone(&self) -> Self

impl<T: Debug> Debug for RepeatN<T>

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

Auto Trait Implementations

impl<T> Freeze for RepeatN<T> where RepeatNProducer<T>: Freeze,

impl<T> RefUnwindSafe for RepeatN<T> where RepeatNProducer<T>: RefUnwindSafe,

impl<T> Send for RepeatN<T> where RepeatNProducer<T>: Send,

impl<T> Sync for RepeatN<T> where RepeatNProducer<T>: Sync,

impl<T> Unpin for RepeatN<T> where RepeatNProducer<T>: Unpin,

impl<T> UnsafeUnpin for RepeatN<T> where RepeatNProducer<T>: UnsafeUnpin,

impl<T> UnwindSafe for RepeatN<T> where RepeatNProducer<T>: UnwindSafe,

Blanket Implementations

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

impl<T> Borrow<T> for RepeatN<T> where T: ?Sized,

impl<T> BorrowMut<T> for RepeatN<T> where T: ?Sized,

impl<T> CloneToUninit for RepeatN<T> where T: Clone,

impl<T> From<T> for RepeatN<T>

impl<T> IntoEither for RepeatN<T>

impl<T> IntoParallelIterator for RepeatN<T> where T: ParallelIterator,

impl<T> Pointable for RepeatN<T>

impl<T> ToOwned for RepeatN<T> where T: Clone,

impl<T, U> Into<U> for RepeatN<T> where U: From<T>,

impl<T, U> TryFrom<U> for RepeatN<T> where U: Into<T>,

impl<T, U> TryInto<U> for RepeatN<T> where U: TryFrom<T>,