rust/src/libcore/iter
Mazdak Farrokhzad 7e98ec5079
Rollup merge of #64121 - timvermeulen:iter_step_by_internal, r=scottmcm
Override `StepBy::{try_fold, try_rfold}`

Previous PR: https://github.com/rust-lang/rust/pull/51435

The previous PR was closed in favor of https://github.com/rust-lang/rust/pull/51601, which was later reverted. I don't think these implementations will make it harder to specialize `StepBy<Range<_>>` later, so we should be able to land this without any consequences.

This should fix https://github.com/rust-lang/rust/issues/57517 – in my benchmarks `iter` and `iter.step_by(1)` now perform equally well, provided internal iteration is used.
2019-09-09 17:42:24 +02:00
..
adapters Rollup merge of #64121 - timvermeulen:iter_step_by_internal, r=scottmcm 2019-09-09 17:42:24 +02:00
traits Add Iterator comparison methods that take a comparison function 2019-09-06 15:30:17 +02:00
mod.rs Use internal iteration in the Sum and Product impls of Result and Option 2019-07-29 02:40:50 +02:00
range.rs implement nth_back for RangeInclusive 2019-06-09 22:45:11 +02:00
sources.rs Avoid closures in OnceWith and Successors 2019-08-12 15:03:44 -07:00