Skip to content

Glossary: Algorithms Beyond the Basics in Rust

Copy (of a vector)

Also written: clone, chosen.clone()

`chosen.clone()` makes a new vector with the same items, so later undo steps in backtracking cannot change a saved answer.

Where the book teaches it

Related terms

BacktrackingDerive