pub struct InputState { /* private fields */ }Implementations§
Source§impl InputState
impl InputState
pub fn new(config: &Config) -> Self
pub fn update_from_config(&mut self, config: &Config)
pub fn validate_input(&self, input: &str) -> Result<()>
pub fn reset_for_language_change(&mut self)
pub fn execute(&self) -> Result<String>
pub fn handle_key_event(&mut self, key: KeyEvent) -> Option<String>
pub fn export_state(&self) -> InputStateBackup
pub fn import_state(&mut self, backup: InputStateBackup)
pub fn get_content(&self) -> &str
pub fn get_history_count(&self) -> usize
Trait Implementations§
Source§impl InputWidget for InputState
impl InputWidget for InputState
fn update_cursor_blink(&mut self)
Source§impl Widget for InputState
impl Widget for InputState
fn render(&self) -> Paragraph<'_>
fn render_with_cursor(&self) -> (Paragraph<'_>, Option<(u16, u16)>)
fn handle_input(&mut self, key: KeyEvent) -> Option<String>
fn as_input_state(&mut self) -> Option<&mut dyn InputWidget>
Source§fn get_backup_data(&self) -> Option<InputStateBackup>
fn get_backup_data(&self) -> Option<InputStateBackup>
✅ NEU: Get backup data (default: empty)
Source§fn restore_backup_data(&mut self, backup: InputStateBackup)
fn restore_backup_data(&mut self, backup: InputStateBackup)
✅ NEU: Restore from backup data (default: do nothing)
Auto Trait Implementations§
impl Freeze for InputState
impl !RefUnwindSafe for InputState
impl Send for InputState
impl Sync for InputState
impl Unpin for InputState
impl !UnwindSafe for InputState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more