Glossary: Rust Beyond the Basics
Fn
Also written: FnMut, FnOnce
The three closure traits: `Fn` only reads what it captures and can be called repeatedly, `FnMut` changes captures, and `FnOnce` gives a captured value away so it can run only once.
Glossary: Rust Beyond the Basics
Also written: FnMut, FnOnce
The three closure traits: `Fn` only reads what it captures and can be called repeatedly, `FnMut` changes captures, and `FnOnce` gives a captured value away so it can run only once.