Repository navigation
Closed
Labels
A-slice-vecArea: `[T]` and `Vec<T>`Area: `[T]` and `Vec<T>`B-unstableBlocker: Implemented in the nightly compiler and unstable.Blocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCI-libs-radarLibs issues that are tracked on the team's radar.Libs issues that are tracked on the team's radar.Libs-SmallLibs issues that are considered "small" or self-containedLibs issues that are considered "small" or self-containedT-libs-api[DEPRECATED; DO NOT USE][DEPRECATED; DO NOT USE]disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.
Description
This is the tracking bug for the discussion outlined in rust-lang/rfcs#1470.
I'm working on implementing this in the libstd, and will add it as an unstable feature pending resolution of any comments that may arise in this thread. I plan to add comprehensive testing as well.
Reacted by leonardo-m, IGI-111, Marco Conte, Julian Knodt, Dmitry Murzin, Stanislav Tkach, Adam Reichold and Konstantin Malanchev
Metadata
Metadata
Assignees
Labels
A-slice-vecArea: `[T]` and `Vec<T>`Area: `[T]` and `Vec<T>`B-unstableBlocker: Implemented in the nightly compiler and unstable.Blocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCI-libs-radarLibs issues that are tracked on the team's radar.Libs issues that are tracked on the team's radar.Libs-SmallLibs issues that are considered "small" or self-containedLibs issues that are considered "small" or self-containedT-libs-api[DEPRECATED; DO NOT USE][DEPRECATED; DO NOT USE]disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.
Activity
nikic commentedon Oct 24, 2018
Just for the record, if someone needs this functionality right now, the order_stat crate provides an implementation of the Floyd-Rivest selection algorithm.
Rollup merge of rust-lang#55448 - Mokosha:SortAtIndex, r=bluss
Auto merge of #55448 - Mokosha:SortAtIndex, r=bluss
scottmcm commentedon Apr 2, 2019
A thought: since we have
sortandsort_unstable, should the method that got implemented bepartition_unstable_at_indexinstead? Though I suppose there's no good stable way to do it...Rollup merge of rust-lang#55448 - Mokosha:SortAtIndex, r=bluss
Rollup merge of rust-lang#55448 - Mokosha:SortAtIndex, r=bluss
umanwizard commentedon Aug 30, 2019
Hi @Mokosha , is this expected to be stabilized eventually?
[-]Feature Request: analog of C++'s std::nth_element for rust slices.[/-][+]Tracking issue for slice_partition_at_index[/+]34 remaining items
jagill commentedon Oct 7, 2020
@Amanieu I'm happy to make the PR changing the name and stabilizing the issue, but I have a question: If we change the name, this will be breaking for anyone who's been using the current name. It this acceptable, or is there an aliasing step that will preserve behavior for those using the feature flag?
scottmcm commentedon Oct 7, 2020
@jagill It's nightly so it's allowed, but to make it a bit easier on nightly users it's generally preferable to to stabilize it under a different feature gate name so the old method can be left there for a month or two before being removing.
rfcbot commentedon Oct 9, 2020
The final comment period, with a disposition to merge, as per the review above, is now complete.
As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed.
The RFC will be merged soon.
Stabilize slice_select_nth_unstable
Rollup merge of rust-lang#77639 - jagill:stabilize-slice_partition_at…
Auto merge of rust-lang#77639 - jagill:stabilize-slice_partition_at_i…
est31 commentedon Jan 30, 2022
I've opened #93480 to remove the deprecated and unstable
partition_at_index_*functions that were added to ease the transition to the stable feature.