pub trait GameKeyReader {
// Required method
fn read_key(&mut self, timeout: Duration) -> Option<GameKey>;
}Expand description
Abstraction over the terminal so the game can be driven by mock input.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".