-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Impl From<Peekable> for Iterator #133706
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Impl From<Peekable> for Iterator #133706
Conversation
|
The job Click to see the possible cause of the failure (guessed by this bot) |
|
Thank you for the PR! This PR contains a public library API change, which should follow the proper process of creating an ACP first: https://std-dev-guide.rust-lang.org/development/feature-lifecycle.html Personally, I think having an inherent into_inner method would make more sense. |
|
There have been previous rejected ACPs for this: |
|
Thanks for let me know the ACP. Is reasonable to only add |
|
I don't see this PR being accepted in its current state or with modifications. The rationale from the previous attempts still apply, so I'm closing it. The T-libs result was to write your own iterators or to use |
Currently, we have no way to get back to origin Iterator after call
peekable(),this PR impl
From<Peekable<I>>trait for Iterator.