pub trait TurnRecognizer: Send + Sync {
// Required methods
fn name(&self) -> &'static str;
fn detect(&self, screen: &[String]) -> TurnState;
}Expand description
Reads a rendered screen (ANSI already stripped, one String per line) and
classifies the current turn state for a specific kind of TUI.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".