-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Tracking Issue for Iterator::contains #127494
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
cc rust-lang/rfcs#3624, which would be required for stabilizing this without breaking code that calls |
@zachs18 I will rename the function to: has_item and that won't brake any code. |
I think you can keep the function name We need to resolve supertrait shadowing anyway, there are other itertools methods that we would like to pick up. |
@tgross35 it looks like the super trait shadowing pull request has been waiting to be merged for over a month. Why? can I help? |
Nothing really to be done there at the moment, it's just waiting on team discussion and for everyone to take the time to read it. A PR adding unstable |
I have the implementation, docs, and tests ready. I need to figure out whether to call it contains/has_item and then I can send a pull request. @tgross35 Should I just rename it to |
You should keep the original name |
Feature gate:
#![feature(iter_contains)]
This is a tracking issue for a method of the
Iterator
trait that checks whether an iterator contains an item.A method of the iterator trait to check whether it contains an element.
It goes over all the elements in the iterator and checks if they are in the collection.
Public API
Steps / History
Unresolved Questions
Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩
The text was updated successfully, but these errors were encountered: