Comment on Functional State Machines in Rust: Typestate and Newtype PatternsparentComments−vatsachak13dYou don't need the enum? You just require Ticket<T_0> as a function argument.It's really not that cumbersome, it's like two extra lines of code...
Comments
You don't need the enum? You just require Ticket<T_0> as a function argument.
It's really not that cumbersome, it's like two extra lines of code...