Skip to content

Glossary: Data Structures and Algorithms in Rust

reverse()

Also written: .reverse()

A Vec method that reverses the items in place. BFS uses it to turn a route built from goal to start into start to goal.

Where the book teaches it

Related terms

In placecame_from