Closed
Description
Update (@SimonSapin): this is now the tracking issue for an iterator adaptor based on Iterator::nth
:
pub trait Iterator {
fn step_by(self, step: usize) -> StepBy<Self>
}
The Step
trait used for making ranges iterators is now tracked at #42168.
Original issue:
The step_by
method makes it possible to step through ranges with arbitrary-sized steps. There are several issues that need to be addressed before we can stabilize it:
- The design/stabiliztion of the
Step
trait, which is currently a bit of a mess - The behavior on negative steps (see this thread)
- Likely the design/stabilization of
Zero
/One
, tracked here
Metadata
Metadata
Assignees
Labels
Blocker: Implemented in the nightly compiler and unstable.Category: An issue tracking the progress of sth. like the implementation of an RFCCall for participation: Help is requested to fix this issue.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Medium priorityRelevant to the library API team, which will review and decide on the PR/issue.This issue / PR is in PFCP or FCP with a disposition to merge it.The final comment period is finished for this PR / Issue.