pub struct TextInput { /* private fields */ }Expand description
A text field input.
Examples
use tty_form::Form;
let mut form = Form::default();
let mut input = form.add_compound_step().add_text_input();
input.set_force_lowercase(true);Implementations
Trait Implementations
sourceimpl Control for TextInput
impl Control for TextInput
fn is_focusable(&self) -> bool
fn handle_input(&mut self, key_event: KeyEvent)
fn get_help(&self) -> Option<String>
fn get_text(&self) -> (String, Option<u16>)
fn get_drawer(&self) -> Option<Vec<String>>
fn add_to_step(self, step: &mut CompoundStep)
Auto Trait Implementations
impl RefUnwindSafe for TextInput
impl Send for TextInput
impl Sync for TextInput
impl Unpin for TextInput
impl UnwindSafe for TextInput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more