[][src]Struct pns::FireState

pub struct FireState<'net, 'state> {
    pub transitions: Box<[u32]>,
    // some fields omitted
}

A temporary object for selecting a transition to fire.

Fields

transitions: Box<[u32]>

A slice of indices of the current available transitions.

Methods

impl<'net, 'state> FireState<'net, 'state>
[src]

pub fn finish(self, id: u32)
[src]

Finish the fire by specifying the index of the transition index inside the slice of available indices. Not using the index of the transition directly may seem weird, but this way it's easy and efficient to ensure, no invalid transition will be called. And nomrally you know the index anyway and you save the work to get the index manually. As a result you get back your original state.

Auto Trait Implementations

impl<'net, 'state> !Send for FireState<'net, 'state>

impl<'net, 'state> !Sync for FireState<'net, 'state>

Blanket Implementations

impl<T> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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