Add PeekableIterator trait#132976
Conversation
|
Since you said this isn't compilable, I've marked it waiting on author. Please flip it back once it's ready for a review. Note that if you're having trouble with any particular |
|
Do you think it would be better to remove the trait bound from the |
|
☔ The latest upstream changes (presumably #135937) made this pull request unmergeable. Please resolve the merge conflicts. |
|
Looks like this needs some conflicts resolved, at least? Once this is ready for review, please use |
|
Sorry, I haven’t had the motivation to work on this for a long time. I think this needs more thinking on design. |
|
Closing this as there hasn't been any work on this and it requires a redesign which might be better suited for a new pr and/or ACP. Thanks for contributing. |
Adds the
PeekableIteratortrait (tracking issue: #132973) and implementations forslice::Iterandops::Range.I tried to implement it for
Cloned, but I couldn’t get the types and lifetimes to line up, so the unit test atlibrary/core/tests/iter/traits/peekable.rsis not yet compilable.