[][src]Struct pns::SimulationState

pub struct SimulationState<'net> {
    pub state: &'net State,
    // some fields omitted
}

A simulation state combined with the net it belongs to.

Fields

state: &'net State

The real state value.

Implementations

impl<'net> SimulationState<'net>[src]

pub fn save(&self, filename: &str) -> bool[src]

Save the current state of the simulation.

pub fn call_counts(&self) -> &[u32][src]

List the current call counts of all transitions. Counts are counted down again when playing backwards.

pub fn token_counts(&self) -> &[u32][src]

List the current token counts of all transitions.

Auto Trait Implementations

impl<'net> RefUnwindSafe for SimulationState<'net>

impl<'net> !Send for SimulationState<'net>

impl<'net> !Sync for SimulationState<'net>

impl<'net> Unpin for SimulationState<'net>

impl<'net> UnwindSafe for SimulationState<'net>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.