Finite state machine: Difference between revisions
Content added Content deleted
(Rust:out) |
|||
Line 2,215: | Line 2,215: | ||
=={{header|Rust}}== |
=={{header|Rust}}== |
||
For abstraction, it is desirable to implement the transitions of the state machine through its methods. |
For abstraction, it is desirable to implement the transitions of the state machine through its methods. |
||
Here it is done transparently using the method_enum::gen macro. |
Here it is done transparently using the method_enum::gen macro.<br> |
||
'''[dependencies]'''<br> |
'''[dependencies]'''<br> |
||
methods-enum = "0.2.4" |
methods-enum = "0.2.4" |