-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Tracking Issue for {BTreeMap,BTreeSet}::extract_if #70530
Copy link
Copy link
Closed
Labels
A-collectionsArea: `std::collections`Area: `std::collections`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 RFCLibs-TrackedLibs issues that are tracked on the team's project board.Libs issues that are tracked on the team's project board.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.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.
Milestone
Metadata
Metadata
Assignees
Labels
A-collectionsArea: `std::collections`Area: `std::collections`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 RFCLibs-TrackedLibs issues that are tracked on the team's project board.Libs issues that are tracked on the team's project board.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.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.
Type
Fields
Give feedbackNo fields configured for issues without a type.
This is a tracking issue for the Implementation of a
extract_ifmethod onBTreeMapandBTreeSet, similar to the one in LinkedList and in Vec (#43244).The feature gate for the issue is
#About tracking issues
Tracking issues are used to record the overall progress of implementation.
They are also uses as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Public API
Steps
Ordbound: efficient for simple and common cases, but falling back on a coarse restart after complicated removals.Possibly adjust the underlying tree representation (usingCells).Ordbound, tracking every adjustmentUnresolved Questions
Ordbound ondrain_filter(that is currently not required)?Vec::drain_filterandLinkedList::drain_filterprovide, as I tried to discuss in Audit liballoc for leaks inDropimpls when user destructor panics #67290?Implementation history
Ordbound onDrainFilter(not ondrain_filter) (Remove the Ord bound that was plaguing drain_filter #70843)BTreeMap(Keep track of position when deleting from a BTreeMap #70795)drainandretain(BTreeMap/BTreeSet drain & retain #66747)