News for hackers. Stuff that matters.
Re:Using enums to represent state in Rust by milliams on Friday September 22, 2023 @11:21AM (#37613216)
I found this (old [2016] but still relevant) blog post expanding on this at https://hoverbear.org/blog/rust-state-machine-pattern/ which was very useful for describing type-safe state machines in Rust.

There are no comments on this comment yet.