struct BinaryHeap<T> { ... }
T: Comparable<T>

A binary max-heap (priority queue).

Example

Min-heap functionality can be achieved by using a BinaryHeap over a type that implements Comparable in reverse order.

Methods

impl BinaryHeap<T> { ... }
T: Comparable<T>