The state machines are not send and the code is sequnecial. We only need `&mut machine` refference to pass to `take_mut::take` to change the state of the machine. In 2/3 cases we can even use `.get_mut()` method and even avoid the dynamic borrow checks at runtime. For the `TitleMachine` The only thing that will hold a refference to it after initialization will be the play_button callback. So it's justifiable to use `RefCell` insetead of a `Mutex`. |
||
|---|---|---|
| .. | ||
| resources | ||
| src | ||
| build.rs | ||
| Cargo.toml | ||