-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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 a function to get the key from a HashMap #43143
Comments
If |
@oli-obk the entry api would not work, because it requires &mut, this usecase would require the ability to have multiple references and therefore just & |
I don't love the name |
…mulacrum Implement get_key_value for HashMap, BTreeMap Fixes rust-lang#43143 Follow up from rust-lang#46992
…mulacrum Implement get_key_value for HashMap, BTreeMap Fixes rust-lang#43143 Follow up from rust-lang#46992
Basically just
sometimes you need a reference to a key with the lifetime of the collection.
The text was updated successfully, but these errors were encountered: