-
Notifications
You must be signed in to change notification settings - Fork 298
Cannot use or_insert_with
for HashMap::<usize, HashMap<usize, i64>>
- is this supposed to be supported?
#595
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
Comments
So, the For integer keys, you should be using |
Alright, thank you @clarfonthey ! I'm fine with closing this unless anyone wants to e.g. add an extra snippet of documentation somewhere or further discuss the "weirdness" of the |
Up to you— I think that documentation can always be improved, although I also was able to figure this out mostly by just checking the docs for |
I guess I would have liked to see a reference to To me, it's not very clear what the difference between these two are, going only by the description text:
In what way isn't |
I have a program like this:
Unfortunately,
cargo build
produces the following error:I'm not sure if I'm doing something wrong or if this is not supposed to be a supported use case?
The text was updated successfully, but these errors were encountered: