(&self, u: &mut Unstructured, _state: &Self::State)
| 254 | } |
| 255 | |
| 256 | fn gen_command(&self, u: &mut Unstructured, _state: &Self::State) -> Result<Self::Command> { |
| 257 | use CounterCommand::*; |
| 258 | u.choose(&[Get, Inc, Dec, Reset]) |
| 259 | } |
| 260 | |
| 261 | fn run_command(&self, system: &mut Self::System, cmd: &Self::Command) -> Self::Result { |
| 262 | use CounterCommand::*; |