pub struct NestedMachine { /* private fields */ }Expand description
The managed state of a Hierarchical Finite State Machine (HFSM)
This contains the state pointers of innactive state machines that entered a
nested machine, and the state Data of those machines.
Implementations§
Source§impl NestedMachine
impl NestedMachine
Sourcepub fn new_active() -> Self
pub fn new_active() -> Self
Initialize a NestedMachine with the first State of the first
Machine activated.
pub fn stack_len(&self) -> usize
pub fn current_state_name<'a, B, T>( &self, machines: &'a StateMachines<B, T>, ) -> Option<&'a str>
pub fn current_machine_name<'a, B, T>( &self, machines: &'a StateMachines<B, T>, ) -> Option<&'a str>
pub fn update<'w, 's, 'ww, 'ss, B, Trs, Wrd, Updt>(
&mut self,
machines: &StateMachines<B, Trs>,
commands: &mut Updt,
world: &Wrd,
) -> Result<Complete, Error>where
B: Behavior<Update<'w, 's> = Updt, World<'ww, 'ss> = Wrd> + 'static,
Trs: Transition<World<'ww, 'ss> = Wrd> + 'static,
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NestedMachine
impl !RefUnwindSafe for NestedMachine
impl Send for NestedMachine
impl Sync for NestedMachine
impl Unpin for NestedMachine
impl !UnwindSafe for NestedMachine
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