[−][src]Struct pns::SimulationStateMut
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,