Module rayon::iter::repeat

source ·

Structs§

Functions§

  • Creates a parallel iterator that endlessly repeats elt (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 repeatn() function instead.
  • Creates a parallel iterator that produces n repeats of elt (by cloning it).