pub trait InputAdapter: Copy {
    type Input;
    type Value;
    type State: Default + Copy;

    // Required method
    fn handle_input(
        &self,
        state: &mut Self::State,
        action: Self::Input
    ) -> InputResult<Self::Value>;
}

Required Associated Types§

Required Methods§

source

fn handle_input( &self, state: &mut Self::State, action: Self::Input ) -> InputResult<Self::Value>

Object Safety§

This trait is not object safe.

Implementors§