Trait tui_prompts::Prompt
source · pub trait Prompt: StatefulWidget {
// Required method
fn draw(self, frame: &mut Frame<'_>, area: Rect, state: &mut Self::State);
}
Expand description
A prompt that can be drawn to a terminal.
pub trait Prompt: StatefulWidget {
// Required method
fn draw(self, frame: &mut Frame<'_>, area: Rect, state: &mut Self::State);
}
A prompt that can be drawn to a terminal.