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
nrepeats of the element, similar to the generaltake().The resulting
RepeatNis anIndexedParallelIterator, allowing more functionality thanRepeatalone.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