Skip to content

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.

Where the book teaches it

Related terms

closuremovecapture