Glossary: Rust Beyond the Basics
move
Also written: move closure
A keyword that makes a closure take ownership of the variables it captures. It is needed when the closure outlives them, as with returned closures and threads.
Glossary: Rust Beyond the Basics
Also written: move closure
A keyword that makes a closure take ownership of the variables it captures. It is needed when the closure outlives them, as with returned closures and threads.