Trait stateright::StateMachine[][src]

pub trait StateMachine: Sized {
    type State;
    fn init(&self, results: &mut StepVec<Self::State>);
fn next(&self, state: &Self::State, results: &mut StepVec<Self::State>); fn checker<I>(
        &self,
        keep_paths: KeepPaths,
        invariant: I
    ) -> Checker<Self, I>
    where
        Self::State: Hash,
        I: Fn(&Self, &Self::State) -> bool
, { ... } }

Defines how a state begins and evolves, possibly nondeterministically.

Associated Types

The type of state upon which this machine operates.

Required Methods

Collects the initial possible action-state pairs.

Collects the subsequent possible action-state pairs based on a previous state.

Provided Methods

Initializes a fresh checker for a state machine.

Implementors