Trait CollectEvents

Source
pub trait CollectEvents {
    // Required methods
    fn collect_events<E: Event + Clone>(&mut self) -> &mut Self;
    fn collect_events_only<E: Event + Clone + PartialEq>(
        &mut self,
        event: E,
    ) -> &mut Self;
    fn collect_events_any_of<E: Event + Clone + PartialEq>(
        &mut self,
        events: &[E],
    ) -> &mut Self;
    fn get_collected_events<E: Event + Clone>(&self) -> Option<Vec<E>>;
}

Required Methods§

Source

fn collect_events<E: Event + Clone>(&mut self) -> &mut Self

Source

fn collect_events_only<E: Event + Clone + PartialEq>( &mut self, event: E, ) -> &mut Self

Source

fn collect_events_any_of<E: Event + Clone + PartialEq>( &mut self, events: &[E], ) -> &mut Self

Source

fn get_collected_events<E: Event + Clone>(&self) -> Option<Vec<E>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§