Skip to content

Glossary: Data Structures and Algorithms in Rust

Reverse

Also written: std::cmp::Reverse

A wrapper from std::cmp that flips an item's ordering. Wrapping items in it makes the max-heap BinaryHeap hand out the smallest first.

Where the book teaches it

Related terms

BinaryHeapMax-heap, min-heap