-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Allow indexing HashMap/BTreeMap mutably #25034
Comments
tl;dr for anyone frustrated with this: blocked on IndexSet being fully defined to avoid Messes |
Triage: no change. |
This is going to require an RFC. Let's track this as part of rust-lang/rfcs#997. |
@dtolnay @Gankra It's not immediately clear to me from looking at RFC issue 997 why BTreeMap and HashMap can't yet implement the existing |
IndexMut would make |
Note #23559. The suggestion is to use
get_mut
instead, but that's a lot uglier.The text was updated successfully, but these errors were encountered: