-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Allow indexing HashMap/BTreeMap mutably #25034
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
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: