Expand description
A priority queue implemented with a binary heap.
Insertion and popping the largest element have O(log n) time complexity. Checking the smallest/largest element is O(1).
Structs§
- Binary
Heap Inner - Base struct for
BinaryHeap
andBinaryHeapView
, generic over theVecStorage
. - Peek
MutInner - Structure wrapping a mutable reference to the greatest item on a
BinaryHeap
.
Enums§
Traits§
- Kind
- The binary heap kind: min-heap or max-heap
Type Aliases§
- Binary
Heap - A priority queue implemented with a binary heap.
- Binary
Heap View - A priority queue implemented with a binary heap.
- PeekMut
- Structure wrapping a mutable reference to the greatest item on a
BinaryHeap
. - Peek
MutView - Structure wrapping a mutable reference to the greatest item on a
BinaryHeap
.