Skip to content

Add HashMap::get_key_value_mut #145

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

Merged
merged 1 commit into from
Mar 7, 2020

Conversation

dodomorandi
Copy link
Contributor

This new API exposes a way to modify a value of an HashMap while keeping
a reference to the relative key. The other safe way of doing this is
using the RawEntryMut API, which could easily lead to an
inconsistent state of the map if misused.

Closes #144

This new API exposes a way to modify a value of an HashMap while keeping
a reference to the relative key. The other safe way of doing this is
using the `RawEntryMut` API, which could easily lead to an
inconsistent state of the map if misused.
@Amanieu
Copy link
Member

Amanieu commented Mar 7, 2020

@bors r+

@bors
Copy link
Contributor

bors commented Mar 7, 2020

📌 Commit 1e7bf40 has been approved by Amanieu

@bors
Copy link
Contributor

bors commented Mar 7, 2020

⌛ Testing commit 1e7bf40 with merge 6f8703d...

@bors
Copy link
Contributor

bors commented Mar 7, 2020

☀️ Test successful - checks-travis
Approved by: Amanieu
Pushing 6f8703d to master...

@bors bors merged commit 6f8703d into rust-lang:master Mar 7, 2020
@dodomorandi dodomorandi deleted the hashmap-get_key_value_mut branch March 7, 2020 14:46
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.

HashMap::get_key_value_mut?
3 participants