Struct Repeat

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

Iterator adaptor for the repeat() function.

Implementations

impl<T> Repeat<T> where T: Clone + Send,

fn take(self, n: usize) -> RepeatN<T>

Takes only n repeats of the element, similar to the general take().

The resulting RepeatN is an IndexedParallelIterator, allowing more functionality than Repeat alone.

fn zip<Z>(self, zip_op: Z) -> Zip<RepeatN<T>, Z::Iter>
where
    Z: IntoParallelIterator<Iter: IndexedParallelIterator>,

Iterates tuples, repeating the element with items from another iterator, similar to the general zip().

Trait Implementations

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

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

impl<T: Clone> Clone for Repeat<T>

fn clone(&self) -> Self

impl<T: Debug> Debug for Repeat<T>

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

Auto Trait Implementations

impl<T> Freeze for Repeat<T> where T: Freeze,

impl<T> RefUnwindSafe for Repeat<T> where T: RefUnwindSafe,

impl<T> Send for Repeat<T> where T: Send,

impl<T> Sync for Repeat<T> where T: Sync,

impl<T> Unpin for Repeat<T> where T: Unpin,

impl<T> UnsafeUnpin for Repeat<T> where T: UnsafeUnpin,

impl<T> UnwindSafe for Repeat<T> where T: UnwindSafe,

Blanket Implementations

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

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

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

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

impl<T> From<T> for Repeat<T>

impl<T> IntoEither for Repeat<T>

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

impl<T> Pointable for Repeat<T>

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

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

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

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