pub trait FireDirection {
// Required method
unsafe fn call<S>(
&self,
simulation: &mut S,
event: <S as Simulation>::Event,
)
where S: Simulation;
}Expand description
A trait representing a direction for calling or reverting events in a simulation.
Required Methods§
Sourceunsafe fn call<S>(&self, simulation: &mut S, event: <S as Simulation>::Event)where
S: Simulation,
unsafe fn call<S>(&self, simulation: &mut S, event: <S as Simulation>::Event)where
S: Simulation,
Calls the provided event based on the direction.
§Safety
This method can assume the parameter to event to be callable.
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.