#[non_exhaustive]pub enum TextInputAction {
Unspecified = 0,
None = 1,
Go = 2,
Search = 3,
Send = 4,
Next = 5,
Done = 6,
Previous = 7,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unspecified = 0
Let receiver decide what logical action to perform
None = 1
No action - receiver could instead interpret as an “enter” key that inserts a newline character
Go = 2
Navigate to the input location (such as a URL)
Search = 3
Search based on the input text
Send = 4
Send the input to the target
Next = 5
Move to the next input field
Done = 6
Indicate that input is done
Previous = 7
Move to the previous input field
Trait Implementations§
Source§impl Clone for TextInputAction
impl Clone for TextInputAction
Source§fn clone(&self) -> TextInputAction
fn clone(&self) -> TextInputAction
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 moreSource§impl Debug for TextInputAction
impl Debug for TextInputAction
Source§impl From<TextInputAction> for i32
impl From<TextInputAction> for i32
Source§fn from(enum_value: TextInputAction) -> Self
fn from(enum_value: TextInputAction) -> Self
Converts to this type from the input type.
Source§impl From<i32> for TextInputAction
impl From<i32> for TextInputAction
Source§impl FromPrimitive for TextInputAction
impl FromPrimitive for TextInputAction
Source§impl PartialEq for TextInputAction
impl PartialEq for TextInputAction
impl Copy for TextInputAction
impl Eq for TextInputAction
impl StructuralPartialEq for TextInputAction
Auto Trait Implementations§
impl Freeze for TextInputAction
impl RefUnwindSafe for TextInputAction
impl Send for TextInputAction
impl Sync for TextInputAction
impl Unpin for TextInputAction
impl UnsafeUnpin for TextInputAction
impl UnwindSafe for TextInputAction
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