PlayDirection

Trait PlayDirection 

Source
pub trait PlayDirection {
    // Required method
    unsafe fn call<S: Simulation>(&self, simulation: &mut S, event: S::Event);
}
Expand description

A trait representing a direction for calling or reverting events in a simulation.

Required Methods§

Source

unsafe fn call<S: Simulation>(&self, simulation: &mut S, event: S::Event)

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.

Implementors§