pub unsafe trait EventSet {
type Indices: 'static;
// Required methods
fn new_indices(world: &mut World) -> Self::Indices;
fn find_index<F>(indices: &Self::Indices) -> Option<u32>
where F: Event;
fn for_each_index<F>(indices: &Self::Indices, f: F)
where F: FnMut(bool, u32);
}
Expand description
Required Associated Types§
Required Methods§
Sourcefn new_indices(world: &mut World) -> Self::Indices
fn new_indices(world: &mut World) -> Self::Indices
Create a new set of events.
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.