Skip to content

Glossary: Software Design Patterns in Rust

Global mutable state

Also written: global state

A `static` that any code can change, like the old ORDERS list. It hides dependencies and makes parallel tests interfere with each other.

Where the book teaches it

Related terms

SingletonMutexAnti-pattern