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

Implemented IntoIterator for MultiMap (ref, mut ref and consuming) #4

Merged
merged 4 commits into from
Mar 24, 2016

Conversation

havarnov
Copy link
Owner

For &MultiMap this implementation makes sense, but for the consuming IntoIterator (for MultiMap) this api will lose the vector of values. So maybe the IntoIterator's should use iter_all() instead.

Either ...

for (key, first_value_in_vec) in multimap {}

... or:

for (key, vector_of_values) in multimap {}

@havarnov havarnov changed the title Implemented IntoIterator for &MultiMap. Implemented IntoIterator for Mnd consuming)ultiMap (ref, mut ref and consuming) Mar 24, 2016
@havarnov havarnov changed the title Implemented IntoIterator for Mnd consuming)ultiMap (ref, mut ref and consuming) Implemented IntoIterator for MultiMap (ref, mut ref and consuming) Mar 24, 2016
@havarnov havarnov merged commit dd3f63e into master Mar 24, 2016
@havarnov havarnov deleted the FEATURE-INTOITERATOR branch October 25, 2019 20:25
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.

1 participant