pub struct FireState<'net, 'state> {
pub transitions: Box<[u32]>,
// some fields omitted
}
A temporary object for selecting a transition to fire.
A slice of indices of the current available transitions.
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.
🔬 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