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.
Glossary: Data Structures and Algorithms in Rust
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.