#[repr(C)]
pub struct State<'net> {
pub net: &'net Net,
// some fields omitted
}
The state of the petri net used for simulation.
A reference to the petri net
Create a new, empty state for simulation of a petri net.
The state is bound to the lifetime of the simulated net.
Load a simulation state from a file.
Using the wrong file layout will fail or create confusing state.
Save the current state of the simulation.
List the current call counts of all transitions.
Counts are counted down again when playing backwards.
List the current token counts of all transitions.
Generate a FireState
to fire a transition later.
Reverse the play direction. Result represents forward.
Executes the destructor for this type. Read more
Formats the value using the given formatter. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static