We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
step_trait
View all comments
Split off from #27741 because the stabilization path for step_by has moved to being on iterators (#41439), and thus not using the Step trait.
step_by
Step
step
steps_between
is_negative
replace_zero
replace_one
steps_between_by_one
Range<u128>
TrustedLen
usize
core::iter
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)