Feature gate: #![feature(binary_heap_peek_mut_refresh)]
This is a tracking issue for #138161 . This allows efficiently re-obtaining the maximum element of a binary heap after the peeked element was modified, and determines if the heap has changed as a result of that element modification.
Public API
// alloc::collections::binary_heap;
impl<'a, T: Ord, A: Allocator> PeekMut<'a, T, A> {
pub fn refresh(&mut self) -> bool;
}
Steps / History
Unresolved Questions
Feature gate:
#![feature(binary_heap_peek_mut_refresh)]This is a tracking issue for #138161 . This allows efficiently re-obtaining the maximum element of a binary heap after the peeked element was modified, and determines if the heap has changed as a result of that element modification.
Public API
Steps / History
Unresolved Questions
stdcollections should be consistent but there are no others yet.Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩