Module binary_heap

Module binary_heap 

Source
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§

BinaryHeapInner
Base struct for BinaryHeap and BinaryHeapView, generic over the VecStorage.
PeekMutInner
Structure wrapping a mutable reference to the greatest item on a BinaryHeap.

Enums§

Max
Max-heap
Min
Min-heap

Traits§

Kind
The binary heap kind: min-heap or max-heap

Type Aliases§

BinaryHeap
A priority queue implemented with a binary heap.
BinaryHeapView
A priority queue implemented with a binary heap.
PeekMut
Structure wrapping a mutable reference to the greatest item on a BinaryHeap.
PeekMutView
Structure wrapping a mutable reference to the greatest item on a BinaryHeap.