The other team.
(&self)
| 32 | impl Team { |
| 33 | /// The other team. |
| 34 | pub fn other(&self) -> Team { |
| 35 | match *self { |
| 36 | Team::Red => Team::Blue, |
| 37 | Team::Blue => Team::Red, |
| 38 | } |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | /// The state for one of the planets in a game. |
no outgoing calls
no test coverage detected