pub struct Automaton<'a, Id, D, E> { /* private fields */ }
Expand description
Finite-state automaton that crawls around a specified graph until no more state changes can be done.
Implementations§
Source§impl<'a, Id, D, E> Automaton<'a, Id, D, E>
impl<'a, Id, D, E> Automaton<'a, Id, D, E>
Sourcepub fn new<FInit: Fn() -> SharedAutomatonState<'a, Id, D, E>>(
f_state_graph_init: FInit,
) -> Self
pub fn new<FInit: Fn() -> SharedAutomatonState<'a, Id, D, E>>( f_state_graph_init: FInit, ) -> Self
Creates new automaton with graph initiated by specified function.
Sourcepub fn run(&mut self, data: &mut D) -> AutomatonResult<Id, E>
pub fn run(&mut self, data: &mut D) -> AutomatonResult<Id, E>
Starts automaton with given data.
Auto Trait Implementations§
impl<'a, Id, D, E> Freeze for Automaton<'a, Id, D, E>
impl<'a, Id, D, E> !RefUnwindSafe for Automaton<'a, Id, D, E>
impl<'a, Id, D, E> !Send for Automaton<'a, Id, D, E>
impl<'a, Id, D, E> !Sync for Automaton<'a, Id, D, E>
impl<'a, Id, D, E> Unpin for Automaton<'a, Id, D, E>
impl<'a, Id, D, E> !UnwindSafe for Automaton<'a, Id, D, E>
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