Files
rust/library
Guillaume Gomez a181806b8c Rollup merge of #85338 - lopopolo:core-iter-repeat-gh-81292, r=joshtriplett
Implement more Iterator methods on core::iter::Repeat

`core::iter::Repeat` always returns the same element, which means we can
do better than implementing most `Iterator` methods in terms of
`Iterator::next`.

Fixes #81292.

#81292 raises the question of whether these changes violate the contract of `core::iter::Repeat`, but as far as I can tell `core::iter::repeat` doesn't make any guarantees around how it calls `Clone::clone`.
2021-05-18 14:08:46 +02:00
..
2021-04-25 13:48:03 -07:00
2021-04-09 15:33:43 +02:00
2021-05-02 17:46:00 -06:00
2021-05-12 00:55:03 +02:00
2021-05-13 15:01:09 +02:00
2021-02-03 23:15:45 +01:00
2021-05-12 00:55:03 +02:00