Skip to content

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.

Where the book teaches it

Related terms

closurecaptureasync block