Skip to content

Glossary: Software Design Patterns in Rust

static

Also written: static mut

A global that lives for the whole program. Rust lets you change one only behind a `Mutex` (or via `unsafe` with `static mut`).

Where the book teaches it

Related terms

MutexGlobal mutable stateOnceLockunsafe