/// Returns all triggered events of a given type.
Returns all triggered events of a given type.
Returns all triggered events of a given type .
pub fn triggered_events<E: Send + Sync + Clone + 'static>(
    world: &World,
    reader: &mut ReaderId<E>,
) -> Vec<E> {
    let channel = world.fetch::<EventChannel<E>>();
    channel.read(reader).cloned().collect()
}
pub fn triggered_events < E : Send + Sync + Clone + ' static > ( world : & World , reader : & mut ReaderId < E > , ) -> Vec < E > { let channel = world . fetch :: < EventChannel < E > > ( ) ; channel . read ( reader ) . cloned ( ) . collect ( ) }
Returns all triggered events of a given type.
Returns all triggered events of a given type .
world
&World
reader
&mut ReaderId<E>