pub struct InputState { /* private fields */ }Implementations§
Source§impl InputState
impl InputState
pub fn new() -> Self
pub fn insert_char(&mut self, c: char)
pub fn backspace(&mut self)
pub fn delete(&mut self)
pub fn move_left(&mut self)
pub fn move_right(&mut self)
pub fn move_home(&mut self)
pub fn move_end(&mut self)
pub fn clear(&mut self)
pub fn set(&mut self, text: String)
pub fn is_empty(&self) -> bool
pub fn as_str(&self) -> &str
pub fn cursor_byte_offset(&self) -> usize
Trait Implementations§
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