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

Add `HashMap::get_key_value_mut` #145

Merged
merged 1 commit into from Mar 7, 2020

Conversation

@dodomorandi
Copy link
Contributor

dodomorandi commented Mar 7, 2020

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

This comment has been minimized.

Copy link
Collaborator

Amanieu commented Mar 7, 2020

@bors r+

@bors

This comment has been minimized.

Copy link
Contributor

bors commented Mar 7, 2020

📌 Commit 1e7bf40 has been approved by Amanieu

@bors

This comment has been minimized.

Copy link
Contributor

bors commented Mar 7, 2020

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

@bors

This comment has been minimized.

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
1 of 2 checks passed
1 of 2 checks passed
Travis CI - Pull Request Build Failed
Details
homu Test successful
Details
@dodomorandi dodomorandi deleted the dodomorandi:hashmap-get_key_value_mut branch Mar 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

3 participants
You can’t perform that action at this time.