Skip to content
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

Added implementations for IntoIter and IterMut #16

Merged
merged 5 commits into from
Oct 10, 2021

Conversation

TinBryn
Copy link
Contributor

@TinBryn TinBryn commented Oct 10, 2021

  • The main goal was to add IntoIter, this allows moving the values and their count out of the counter
  • It may be nicer to modify the counts manually with an iterator rather than via index.

- The main goal was to add IntoIter, this allows moving the values and their count out of the counter
- It may be nicer to modify the counts manually with an iterator rather than via index.
Copy link
Owner

@coriolinus coriolinus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea! Needs a little tweaking but is fundamentally sound.

src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
@TinBryn
Copy link
Contributor Author

TinBryn commented Oct 10, 2021

I've removed those constraints and switched to path qualified types rather than imports.

I also added a couple docs.

Copy link
Owner

@coriolinus coriolinus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks for doing this work.

@coriolinus coriolinus merged commit 618858d into coriolinus:master Oct 10, 2021
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.

None yet

2 participants