pub struct StateChart<'w, W: 'w + Write> { /* private fields */ }Expand description
Top-level representation of a complete statechart.
Contains a list of all nodes and events that make up the statechart.
Implementations§
Source§impl<'w, W: 'w + Write> StateChart<'w, W>
impl<'w, W: 'w + Write> StateChart<'w, W>
pub fn from(path: &str, writer: &'w mut W) -> Result<Self, StateChartError>
Sourcepub fn active_state_ids(&self) -> Vec<&str>
pub fn active_state_ids(&self) -> Vec<&str>
Retrieves the IDs of all active states in the StateChart.
pub fn process_external_event( &mut self, event: &Event, ) -> Result<(), StateChartError>
Trait Implementations§
Source§impl<'w, W: 'w + Write> Debug for StateChart<'w, W>
impl<'w, W: 'w + Write> Debug for StateChart<'w, W>
impl<'w, W: 'w + Write> StructuralPartialEq for StateChart<'w, W>
Auto Trait Implementations§
impl<'w, W> Freeze for StateChart<'w, W>
impl<'w, W> RefUnwindSafe for StateChart<'w, W>where
W: RefUnwindSafe,
impl<'w, W> Send for StateChart<'w, W>where
W: Send,
impl<'w, W> Sync for StateChart<'w, W>where
W: Sync,
impl<'w, W> Unpin for StateChart<'w, W>
impl<'w, W> !UnwindSafe for StateChart<'w, W>
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