-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Add Set Algebra iterators to trait Set: Intersection, Difference, Sym. Diff, Union. #8154
Labels
A-collections
Area: std::collections.
Comments
Just to keep bugs appropriately linked: one hypothetical solution for expressing trait methods that return iterators is to make the iterator's type an associated type of the trait. A la #5033. |
We no longer have a |
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
Jan 13, 2022
Consider auto-deref when linting `manual_swap` fixes rust-lang#8154 changelog: Don't lint `manual_swap` when a field access involves auto-deref
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
These methods exist (or used to exist) in the Set trait, and should be reintroduced when we can express methods returning iterators in a trait.
Bonus points for: Allow operations across two sets with matching element types but generic Set impl.
The text was updated successfully, but these errors were encountered: