pub trait AutoIncEvent: UserEvent {
// Required method
fn next(&mut self) -> Self::ID;
}Expand description
Generally if user-defined event system do not care about event id’s semantics,
CAN implement this trait to reduce usage complexity
Required Methods§
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.