#[allow(non_camel_case_types)] #[allow(dead_code)] #[derive(Copy,Clone)] pub enum PlayerId { NONE, PLAYER_1, PLAYER_2, } impl Default for PlayerId { fn default() -> Self { PlayerId::NONE } } impl core::fmt::Debug for PlayerId { fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { match *self { PlayerId::NONE => { write!(f, "PlayerId::NONE ") }, PlayerId::PLAYER_1 => { write!(f, "PlayerId::PLAYER_1") }, PlayerId::PLAYER_2 => { write!(f, "PlayerId::PLAYER_2") }, } } }