Struct requestty_ui::widgets::Prompt [−][src]
pub struct Prompt<M, H = &'static str> { /* fields omitted */ }Expand description
A generic prompt that renders a message and an optional hint.
Implementations
Sets the hint
Sets the hint delimiter
Consume self returning the owned message
Consume self returning the owned message and hint
The character length of the message
Trait Implementations
Render to a given backend. Read more
The number of rows of the terminal the widget will take when rendered. Read more
The position of the cursor to be placed at after render. The returned value should be in the form of (x, y), with (0, 0) being the top left of the screen. Read more
Handle a key input. It should return whether key was handled.
Auto Trait Implementations
impl<M, H> RefUnwindSafe for Prompt<M, H> where
H: RefUnwindSafe,
M: RefUnwindSafe,
impl<M, H> UnwindSafe for Prompt<M, H> where
H: UnwindSafe,
M: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more