Skip to main content

Component

Trait Component 

Source
pub trait Component {
    // Required method
    fn handle_keystroke(&mut self, key: KeyEvent) -> KeyResult;
}
Expand description

Trait for TUI components that can handle keyboard input.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§