Module repeat

Source

Structs§

Repeat
Iterator adaptor for the repeat() function.
RepeatN
Iterator adaptor for the repeat_n() function.
RepeatProducer 🔒
Unindexed producer for Repeat.

Enums§

RepeatNProducer 🔒
Producer for RepeatN.

Functions§

repeat
Creates a parallel iterator that endlessly repeats element (by cloning it). Note that this iterator has “infinite” length, so typically you would want to use zip or take or some other means to shorten it, or consider using the repeat_n() function instead.
repeat_n
Creates a parallel iterator that produces n repeats of element (by cloning it).
repeatnDeprecated
Creates a parallel iterator that produces n repeats of element (by cloning it).