#[non_exhaustive]pub enum InputMode {
None,
Text,
Decimal,
Numeric,
Tel,
Search,
Email,
Url,
}Expand description
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.
None
none: no on-screen keyboard, for a field with its own picker.
Text
text: the keyboard of the visitor’s language.
Decimal
decimal: digits and the decimal separator.
Numeric
numeric: digits only, for a code or a card number.
Tel
tel: digits, *, and #.
Search
search: a keyboard whose enter key reads “Search”.
email: a keyboard with @.
Url
url: a keyboard with / and ..
Trait Implementations§
impl Copy for InputMode
impl Eq for InputMode
impl StructuralPartialEq for InputMode
Auto Trait Implementations§
impl Freeze for InputMode
impl RefUnwindSafe for InputMode
impl Send for InputMode
impl Sync for InputMode
impl Unpin for InputMode
impl UnsafeUnpin for InputMode
impl UnwindSafe for InputMode
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