pub struct CState {Show 13 fields
pub id: String,
pub kind: StateKind,
pub parent: Option<StateIdx>,
pub last: StateIdx,
pub children: Vec<StateIdx>,
pub history: Vec<StateIdx>,
pub transitions: Vec<TransIdx>,
pub initial: Option<TransIdx>,
pub onentry: Vec<Block>,
pub onexit: Vec<Block>,
pub data: Vec<Data>,
pub invokes: Vec<Invoke>,
pub donedata: Option<DoneData>,
}Expand description
A state in the compiled chart.
Fields§
§id: StringThe state identifier; empty for the root.
kind: StateKindThe kind; the root is StateKind::Compound.
parent: Option<StateIdx>The parent; None only for the root.
last: StateIdxThe last index of this state’s subtree (itself when it has no descendants).
children: Vec<StateIdx>Child states that are not history states, in document order.
history: Vec<StateIdx>History children in document order.
transitions: Vec<TransIdx>Transitions declared on the state, in document order (for a history state: its default).
initial: Option<TransIdx>The default-entry transition of a compound state or the root.
onentry: Vec<Block>onentry blocks.
onexit: Vec<Block>onexit blocks.
data: Vec<Data>Data items declared by the state (for the root: the top-level datamodel).
invokes: Vec<Invoke>Invokes in document order.
donedata: Option<DoneData>donedata of a final state.
Trait Implementations§
impl StructuralPartialEq for CState
Auto Trait Implementations§
impl Forget for CState
impl Freeze for CState
impl Move for CState
impl RefUnwindSafe for CState
impl Send for CState
impl Sync for CState
impl Unpin for CState
impl UnsafeUnpin for CState
impl UnwindSafe for CState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more