-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Implement get_pair for HashMap #46992
Conversation
r? @Kimundi (rust_highfive has picked a reviewer for you, use r? to override) |
Any reason for not adding the same method to |
No, it just wasn't mentioned in the issue - I will add it there too. |
Is it possible to have |
@nvzqz The entry api covers that case |
The entry api requires passing an owned key ( |
ping @rust-lang/libs, thoughts on this API/naming? |
#47259 added |
I'll back |
Although |
1f2c12c
to
e3d84d1
Compare
e3d84d1
to
3342ae7
Compare
I've added the BTreeMap method too. I'm not going to add the mutable versions as part of this PR as I think there are still some questions about what the API should look like. |
Sorry for the delay on this from the libs team! I think that How about |
@Diggsey someone from the libs team replied with a suggestion for another name, can you implement that? |
@Diggsey thanks for taking the time to send this PR! Unfortunately, there was no activity for more than two weeks, so I'm closing it. If you have time to work on it again, feel free to open another PR with the new changes, we'll be happy to review and merge it! |
…mulacrum Implement get_key_value for HashMap, BTreeMap Fixes rust-lang#43143 Follow up from rust-lang#46992
…mulacrum Implement get_key_value for HashMap, BTreeMap Fixes rust-lang#43143 Follow up from rust-lang#46992
We won't need this when rust-lang/rust#46992 is implemented, but for now this is the easiest (and safe) way to untie Filter AST from its string representation, so it can live as long as the context does.
We won't need this when rust-lang/rust#46992 is implemented, but for now this is the easiest (and safe) way to untie Filter AST from its string representation, so it can live as long as the context does.
We won't need this when rust-lang/rust#46992 is implemented, but for now this is the easiest (and safe) way to untie Filter AST from its string representation, so it can live as long as the context does.
Fixes #43143