Skip to main content

SimulationExtensions

Trait SimulationExtensions 

Source
pub trait SimulationExtensions {
    // Required method
    fn token_count(&self, pid: Pid) -> usize;
}
Expand description

Extension trait for the petri net simulation.

Required Methods§

Source

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".

Implementations on Foreign Types§

Source§

impl<R: Deref<Target = State>> SimulationExtensions for SimulationBorrow<'_, PetriNetInfo, R>

Source§

fn token_count(&self, pid: Pid) -> usize

Implementors§