-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Open
Labels
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 RFCT-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.
Description
Feature gate: #![feature(binary_heap_pop_if)]
This is a tracking issue for rust-lang/libs-team#731
Adds a pop_if() function to BinaryHeap mirroring Vec::pop_if()
Public API
// alloc::collections::binary_heap
impl<T, A> BinaryHeap<T, A> {
pub fn pop_if(&mut self, predicate: impl FnOnce(&T) -> bool) -> Option<T> { .. }
}Steps / History
(Remember to update the S-tracking-* label when checking boxes.)
- ACP: ACP:
BinaryHeap::pop_if()libs-team#731 - Implementation: Implement
BinaryHeap::pop_if()#151829 - Final comment period (FCP)1
- Stabilization PR
Unresolved Questions
- None yet.
Footnotes
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
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 RFCT-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.