(&self, cmd: &Self::Command, state: Self::State)
| 276 | } |
| 277 | |
| 278 | fn next_state(&self, cmd: &Self::Command, state: Self::State) -> Self::State { |
| 279 | use CounterCommand::*; |
| 280 | match cmd { |
| 281 | Inc => state + 1, |
| 282 | Dec => state - 1, |
| 283 | Reset => 0, |
| 284 | Get => state, |
| 285 | } |
| 286 | } |
| 287 | |
| 288 | fn check_system( |
| 289 | &self, |