pub trait Widget {
// Required methods
fn render(&self) -> Paragraph<'_>;
fn handle_input(&mut self, key: KeyEvent) -> Option<String>;
}Expand description
Core widget trait for rendering
Required Methods§
fn render(&self) -> Paragraph<'_>
fn handle_input(&mut self, key: KeyEvent) -> Option<String>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".