Skip to content

Glossary: Rust in Practice

static mut

Also written: mutable global

A mutable global variable. Every use needs `unsafe`, so an atomic type or `Mutex` is better.

Where the book teaches it

Related terms

atomic typeMutex