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