pub trait Event: Clone {
// Required method
fn can_merge(&self, other: &Self) -> bool;
}
Expand description
EventQueue event trait
The event type need to implement this trait to tell the event queue whether two consecutive
pending events can be merged into a single event, if can_merge
returns true, the event queue
will replace the last event in the queue with the latest event.
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.