pub trait SimulationEvent {
    // Required method
    fn as_any(&self) -> &dyn Any;
}
Expand description

The SimulationEvent trait defines the interface for all simulation events.

Required Methods§

source

fn as_any(&self) -> &dyn Any

Returns a reference to the event as a trait object implementing Any. This method is useful for downcasting the event to a concrete type.

Implementors§