[][src]Trait naia_shared::EventClone

pub trait EventClone<T: EventType> {
    pub fn clone_box(&self) -> Box<dyn Event<T>>;
}

A Boxed Event must be able to clone itself

Required methods

pub fn clone_box(&self) -> Box<dyn Event<T>>[src]

Clone the Boxed Event

Loading content...

Implementors

impl<Z: EventType, T: 'static + Event<Z> + Clone> EventClone<Z> for T[src]

Loading content...