use enum_dispatch::enum_dispatch; #[enum_dispatch(CheckerEffectTrait)] pub enum CheckerEffect { AliveMarkCheckerEffect, SwapCharacterCheckerEffect, DeathCheckCheckerEffect, DefeatedCheckerEffect, } #[enum_dispatch] pub trait CheckerEffectTrait {} pub struct AliveMarkCheckerEffect; pub struct SwapCharacterCheckerEffect; pub struct DeathCheckCheckerEffect; pub struct DefeatedCheckerEffect;