Struct statemachine_rs::machine::BasicStateMachine[][src]

pub struct BasicStateMachine<State, Input, Transition> where
    Transition: Fn(&State, Input) -> State,
    State: Clone
{ /* fields omitted */ }

The basic state machine implementation. It holds initial_state, current_state, transition function.

Trait Implementations

impl<State, Input, Transition> StateMachine<State, Input> for BasicStateMachine<State, Input, Transition> where
    Transition: Fn(&State, Input) -> State,
    State: Clone
[src]

Auto Trait Implementations

impl<State, Input, Transition> !RefUnwindSafe for BasicStateMachine<State, Input, Transition>[src]

impl<State, Input, Transition> Send for BasicStateMachine<State, Input, Transition> where
    Input: Send,
    State: Send,
    Transition: Send
[src]

impl<State, Input, Transition> !Sync for BasicStateMachine<State, Input, Transition>[src]

impl<State, Input, Transition> Unpin for BasicStateMachine<State, Input, Transition> where
    Input: Unpin,
    State: Unpin,
    Transition: Unpin
[src]

impl<State, Input, Transition> UnwindSafe for BasicStateMachine<State, Input, Transition> where
    Input: UnwindSafe,
    State: UnwindSafe,
    Transition: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.