pub trait SimulationExtensions {
// Required method
fn token_count(&self, pid: Pid) -> usize;
}Expand description
Extension trait for the petri net simulation.
Required Methods§
Sourcefn token_count(&self, pid: Pid) -> usize
fn token_count(&self, pid: Pid) -> usize
Returns the token count for the specified place.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".