pub enum TextInputMsg {
}Expand description
Message type for text input.
Variants§
InsertChar(char)
Insert a character at cursor.
DeleteBack
Delete character before cursor.
DeleteForward
Delete character at cursor.
CursorLeft
Move cursor left.
CursorRight
Move cursor right.
CursorStart
Move cursor to start.
CursorEnd
Move cursor to end.
DeleteWord
Delete word before cursor.
Clear
Clear all text.
Submit
Submit the input.
Focus
Focus the input.
Blur
Blur the input.
SetValue(String)
Set the value.
Paste(String)
Paste text.
Trait Implementations§
Source§impl Clone for TextInputMsg
impl Clone for TextInputMsg
Source§fn clone(&self) -> TextInputMsg
fn clone(&self) -> TextInputMsg
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TextInputMsg
impl RefUnwindSafe for TextInputMsg
impl Send for TextInputMsg
impl Sync for TextInputMsg
impl Unpin for TextInputMsg
impl UnwindSafe for TextInputMsg
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