rust/library/core/src/iter/traits
bors 88b3b520e8 Auto merge of #141086 - a1phyr:spec_advance_by, r=jhpratt
Implement `advance_by` via `try_fold` for `Sized` iterators

When `try_fold` is overriden, it is usually easier for compilers to optimize.

Example difference: https://iter.godbolt.org/z/z8cEfnKro
2025-05-25 11:34:43 +00:00
..
accum.rs use diagnostic::on_unimplemented instead 2025-03-30 15:25:47 +02:00
collect.rs Switch library rustc_unimplemented to use Self and This 2025-05-17 12:50:37 +02:00
double_ended.rs Remove #[cfg(not(test))] gates in core 2025-03-06 13:21:59 -08:00
exact_size.rs Add a doc note about why Chain is not ExactSizeIterator 2023-02-12 10:37:25 -08:00
iterator.rs Auto merge of #141086 - a1phyr:spec_advance_by, r=jhpratt 2025-05-25 11:34:43 +00:00
marker.rs Step bootstrap cfgs 2024-05-01 22:19:11 -04:00
mod.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
unchecked_iterator.rs Allow canonicalizing the array::map loop in trusted cases 2023-02-04 16:44:51 -08:00