Trait EventClone
naia_shared
pub trait EventClone<T: EventType> { pub fn clone_box(&self) -> Box<dyn Event<T>>; }
A Boxed Event must be able to clone itself
pub fn clone_box(&self) -> Box<dyn Event<T>>
Clone the Boxed Event
impl<Z: EventType, T: 'static + Event<Z> + Clone> EventClone<Z> for T
pub fn clone_box(&self) -> Box<dyn Event<Z>>