Skip to content

Glossary: Software Design Patterns in Rust

State

Also written: state pattern, State pattern

A pattern that allows only the moves an order may make. It can be a lightweight enum plus a `match`, or one type per state held in a `Box<dyn State>`.

Where the book teaches it

Related terms

State machineTransition