Skip to content

smallint{map,set}: replace iterators with DoubleEndedIterator #7921

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

Closed
wants to merge 1 commit into from
Closed

smallint{map,set}: replace iterators with DoubleEndedIterator #7921

wants to merge 1 commit into from

Conversation

bytwise
Copy link
Contributor

@bytwise bytwise commented Jul 20, 2013

Made the iter and mut_iter methods on SmallIntMap and SmallIntSet return double-ended-iterators. These iterators now implement size_hint.

Also the iterator tests only tested dense maps/sets, which aren't very useful. So they were changed to iterate over sparse maps/sets.

Fixes #7721

Also changed the tests to iterate over sparse maps/sets.
bors added a commit that referenced this pull request Jul 21, 2013
Made the `iter` and `mut_iter` methods on SmallIntMap and SmallIntSet return double-ended-iterators. These iterators now implement `size_hint`.

Also the iterator tests only tested dense maps/sets, which aren't very useful. So they were changed to iterate over sparse maps/sets.

Fixes #7721
@bors bors closed this Jul 21, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Nov 23, 2021
Fix suggestion for deref expressions in redundant_pattern_matching

changelog: Fix suggestion for deref expressions in [`redundant_pattern_matching`]

closes: rust-lang#7921
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

smallint{map,set}: replace dual forward/reverse iterators with double-ended ones
2 participants