Struct requestty_ui::widgets::CharInput [−][src]
pub struct CharInput<F = FilterMapChar> { /* fields omitted */ }Expand description
A widget that inputs a single character.
A filter_map function can optionally be provided to limit and change the characters allowed,
similar to Iterator::filter_map.
If multiple characters are received, they will overwrite the previous character. If a
multi-character string is required, use StringInput.
Implementations
Creates a new CharInput which only accepts characters as per the filter_map function.
Clears the value.
Trait Implementations
Returns the position right after the character if any.
Handle a key input. It should return whether key was handled.
Render to a given backend. Read more
Auto Trait Implementations
impl<F> RefUnwindSafe for CharInput<F> where
F: RefUnwindSafe,
impl<F> UnwindSafe for CharInput<F> where
F: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more