Closed Michael-F-Bryan closed 4 years ago
@DerLando, would you be able to have a quick look over this and let me know what you think?
I had a quick look over this and like the idea!
From my understanding it will be possible to compose a Mode
from multiple structs which implement State
?
That seems close to the spirit of the crate of composition over inheritance.
I don't see any technical pitfalls for now but I'm also not too experienced in rust.
This is the infrastructure part of #9.
(see Michael-F-Bryan/adventures.michaelfbryan.com#11 for the logic)