-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
collections: Add slice::binary_search_by_key #32693
Conversation
r? @brson (rust_highfive has picked a reviewer for you, use r? to override) |
723f9d3
to
a13540b
Compare
☔ The latest upstream changes (presumably #32804) made this pull request unmergeable. Please resolve the merge conflicts. |
This method adds to the family of `_by_key` methods, and is the counterpart of `slice::sort_by_key`. It was mentioned on rust-lang#30423 but was not implemented at that time. Refs rust-lang#30423
a13540b
to
62945b6
Compare
Rebased. |
The libs team discussed this during triage yesterday and the conclusion was to merge, thanks again for the PR @kamalmarhubi! |
@alexcrichton Does it need a tracking issue to be filled in? |
Guh right, yes! If this lands, wanna file a follow-up PR filling that in? Also feel free to open the issue, I'll fill out the tags |
This method adds to the family of
_by_key
methods, and is thecounterpart of
slice::sort_by_key
. It was mentioned on #30423 butwas not implemented at that time.
Refs #30423