pub struct State {Show 14 fields
pub id: String,
pub id_generated: bool,
pub element: StateElement,
pub initial: Vec<String>,
pub initial_element: Option<Initial>,
pub children: Vec<State>,
pub transitions: Vec<Transition>,
pub onentry: Vec<Block>,
pub onexit: Vec<Block>,
pub data: Vec<Data>,
pub invokes: Vec<Invoke>,
pub donedata: Option<DoneData>,
pub extensions: Vec<Extension>,
pub span: Span,
}Expand description
A state node of any kind.
Fields§
§id: StringThe state identifier, declared or generated.
id_generated: boolTrue when id was generated because the document declared none.
element: StateElementThe element the state was written as.
initial: Vec<String>The initial attribute (compound states only), possibly empty.
initial_element: Option<Initial>The <initial> child element, if any.
children: Vec<State>Child states in document order (excluding the <initial> pseudo-state).
transitions: Vec<Transition>Outgoing transitions in document order. A history state has at most one: its default.
onentry: Vec<Block><onentry> handlers in document order.
onexit: Vec<Block><onexit> handlers in document order.
data: Vec<Data>The state’s <datamodel> block.
invokes: Vec<Invoke><invoke> elements in document order.
donedata: Option<DoneData><donedata> (final states only).
extensions: Vec<Extension>Extension attributes and elements.
span: SpanSource location.
Implementations§
Trait Implementations§
impl Eq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Forget for State
impl Freeze for State
impl Move for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnsafeUnpin for State
impl UnwindSafe for State
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