[][src]Struct pns::SimulationStateMut

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

A simulation state combined with the net it belongs to, ready for simualtion.

Fields

state: &'net mut State

The real state value.

Implementations

impl<'net> SimulationStateMut<'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.

pub fn fire<'state>(&'state mut self) -> FireState<'net, 'state>[src]

Generate a FireState to fire a transition later.

pub fn unfire<'state>(&'state mut self) -> FireState<'net, 'state>[src]

Generate a FireState to unfire a transition later.

pub unsafe fn fire_unchecked(&mut self, tid: u32)[src]

Just fire the transition tid. Caution: Be sure to fire only, when you know a transition to be fireable.

pub unsafe fn unfire_unchecked(&mut self, tid: u32)[src]

Just unfire the transition tid. Caution: Be sure to unfire only, when you know a transition to be unfireable.

Auto Trait Implementations

impl<'net> RefUnwindSafe for SimulationStateMut<'net>

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

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

impl<'net> Unpin for SimulationStateMut<'net>

impl<'net> !UnwindSafe for SimulationStateMut<'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.