-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
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_iter_mut)]
Allows iteration over mutable references to heap elements in arbitrary order and rebuilding the heap when the iterator is dropped.
Public API
// new method
pub fn iter_mut(&mut self) -> IterMut<'_, T>;
// new IntoIterator implementation
impl<'a, T: Ord> IntoIterator for &'a mut BinaryHeap<T>;
// new struct
pub struct IterMut<'a, T: 'a + Ord> { /* private */ }
Steps / History
- Implementation: BinaryHeap: implement IterMut #98522
- Final comment period (FCP)
- Stabilization PR
Unresolved Questions
- None yet.
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.