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§
fn handle_input( &self, state: &mut Self::State, action: Self::Input, ) -> InputResult<Self::Value>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.