Closed
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.