Glossary: Rust Beyond the Basics
closure
Also written: closures
A function without a name, written inline like `|x| x * 2`, that can use variables from the code around it.
Glossary: Rust Beyond the Basics
Also written: closures
A function without a name, written inline like `|x| x * 2`, that can use variables from the code around it.