#[allow(dead_code)] #[derive(Copy,Clone)] pub struct CardEffect { pub name: &'static str, pub when: usize, // TODO: Change this pub fun: &'static dyn Fn(), } impl core::fmt::Debug for CardEffect { fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { write!(f, "{}", self.name) } }