[][src]Trait naia_shared::EventClone

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

A Boxed Event must be able to clone itself

Required methods

fn clone_box(&self) -> Box<dyn Event<T>>

Clone the Boxed Event

Loading content...

Implementors

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

Loading content...