pub struct StateDef {Show 20 fields
pub id: String,
pub path: String,
pub parent: Option<NodeId>,
pub depth: usize,
pub kind: StateKind,
pub esvs: Vec<(String, EsvDecl)>,
pub entry: Vec<Action>,
pub exit: Vec<Action>,
pub initial: Option<InitialDef>,
pub children: Vec<NodeId>,
pub regions: Vec<RegionDef>,
pub on_events: BTreeMap<String, Vec<TransitionDef>>,
pub after: Vec<AfterDef>,
pub defer: Vec<String>,
pub history: HistoryKind,
pub choice: Option<Vec<ChoiceBranchDef>>,
pub region_of: Option<(NodeId, usize)>,
pub is_sm_boundary: bool,
pub sm_with: Vec<(String, String)>,
pub meta: Value,
}Fields§
§id: String§path: String§parent: Option<NodeId>§depth: usize§kind: StateKind§esvs: Vec<(String, EsvDecl)>§entry: Vec<Action>§exit: Vec<Action>§initial: Option<InitialDef>§children: Vec<NodeId>§regions: Vec<RegionDef>§on_events: BTreeMap<String, Vec<TransitionDef>>§after: Vec<AfterDef>§defer: Vec<String>§history: HistoryKind§choice: Option<Vec<ChoiceBranchDef>>§region_of: Option<(NodeId, usize)>§is_sm_boundary: boolInlined submachine root (esv-scope boundary, SPEC §5.6.1).
sm_with: Vec<(String, String)>§meta: ValueOpaque state annotations (SPEC §4.5); informative only.
Implementations§
Source§impl StateDef
impl StateDef
pub fn is_orthogonal(&self) -> bool
pub fn has_history(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StateDef
impl RefUnwindSafe for StateDef
impl Send for StateDef
impl Sync for StateDef
impl Unpin for StateDef
impl UnsafeUnpin for StateDef
impl UnwindSafe for StateDef
Blanket Implementations§
Source§impl<T> AnyExt for T
impl<T> AnyExt for T
Source§fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
Attempts to downcast this to
T behind referenceSource§fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
Attempts to downcast this to
T behind mutable referenceSource§fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
Attempts to downcast this to
T behind Rc pointerSource§fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
Attempts to downcast this to
T behind Arc pointerSource§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