pub struct Input<P, B: Backend> { /* fields omitted */ }
Expand description
A ui runner which implements the render cycle.
It renders and processes events with the help of a type that implements Prompt.
See run for more information
Creates a new Input. This won’t do anything until it is run.
Hides the cursor while running the input. This won’t do anything until it is run.
Display the prompt and process events until the user presses Enter.
After the user presses Enter, validate will be called.
Formats the value using the given formatter. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.