1 2 3 4 5 6 7 8 9 10 11 12 13
pub enum Action<S> { EndGame, PlayerAction(u8, S), } impl<S> Action<S> { pub fn has_response(&self) -> bool { match self { Self::EndGame => false, Self::PlayerAction(_, _) => true, } } }