(&mut self)
| 54 | |
| 55 | impl Command { |
| 56 | pub(crate) fn delete_delay(&mut self) { |
| 57 | if let Command::Figure { delay, .. } | Command::Move { delay, .. } = self { |
| 58 | delay.take(); |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | pub(crate) fn change_position(&mut self, pos: &str) { |
| 63 | if let Command::Figure { position, .. } | Command::Move { position, .. } = self { |