Skip to content

Glossary: Rust Beyond the Basics

interior mutability

Changing data through a value that isn't declared `mut`. `RefCell` allows it by checking the borrow rules while the program runs, and `Mutex` allows it through locking.

Where the book teaches it

Related terms

RefCellMutex