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>`.
Glossary: Software Design Patterns in Rust
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>`.