Skip to content

Glossary: Algorithms Beyond the Basics in Rust

Reverse

Also written: std::cmp::Reverse

A wrapper that flips the order of a value so Rust's max-heap `BinaryHeap` acts as a min-heap and pops the smallest item first.

Where the book teaches it

Related terms

BinaryHeapMin-heapDijkstra's algorithm