<!-- homu-ignore:start --> *[View all comments](https://triagebot.infra.rust-lang.org/gh-comments/rust-lang/rust/issues/42168)* <!-- homu-ignore:end --> Split off from https://github.com/rust-lang/rust/issues/27741 because the stabilization path for `step_by` has moved to being on iterators (https://github.com/rust-lang/rust/pull/41439), and thus not using the `Step` trait. - [ ] Remove `step`, `steps_between`, and `is_negative` once Range::step_by is deleted - [ ] Replace `replace_zero` and `replace_one` with something more useful (some options: https://github.com/rust-lang/rfcs/pull/1980#issuecomment-301348126) - [ ] Change `steps_between_by_one` so that `Range<u128>` can be `TrustedLen` (rather than it only working well with types that fit in `usize`) - [ ] Make a decision on how `steps_between` should work https://github.com/rust-lang/rust/issues/48117 - [ ] Should this live in `core::iter` or `core::range`? (and probably more)
View all comments
Split off from #27741 because the stabilization path for
step_byhas moved to being on iterators (#41439), and thus not using theSteptrait.step,steps_between, andis_negativeonce Range::step_by is deletedreplace_zeroandreplace_onewith something more useful (some options: Make RangeInclusive just a two-field struct (amend 1192) rfcs#1980 (comment))steps_between_by_oneso thatRange<u128>can beTrustedLen(rather than it only working well with types that fit inusize)steps_betweenshould work Step::steps_between does not distinguish overflow and unimplemented (unstable) #48117core::iterorcore::range?(and probably more)