pub enum HeapOrder {
Max,
Min,
}Expand description
Comparison direction for heap ordering.
Variants§
Max
Max-heap: parent >= children. peek returns the largest element.
Min
Min-heap: parent <= children. peek returns the smallest element.
Trait Implementations§
impl Copy for HeapOrder
impl Eq for HeapOrder
impl StructuralPartialEq for HeapOrder
Auto Trait Implementations§
impl Freeze for HeapOrder
impl RefUnwindSafe for HeapOrder
impl Send for HeapOrder
impl Sync for HeapOrder
impl Unpin for HeapOrder
impl UnsafeUnpin for HeapOrder
impl UnwindSafe for HeapOrder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more