pub enum KeyboardType {
Text,
Ascii,
Number,
Phone,
Uri,
Email,
Password,
NumberPassword,
Decimal,
}Expand description
The keys a software keyboard offers: Compose’s KeyboardType.
Variants§
Text
The platform’s text keyboard.
Ascii
Letters, digits and symbols from ASCII only.
Number
Digits.
Phone
Digits and the symbols of a phone number.
Uri
Text keys for a web address.
Text keys for an email address.
Password
Text keys for a password: no suggestions, no learning from it.
NumberPassword
Digits for a PIN: no suggestions, no learning from it.
Decimal
Digits and a decimal separator.
Implementations§
Source§impl KeyboardType
impl KeyboardType
Sourcepub fn is_password(self) -> bool
pub fn is_password(self) -> bool
Whether the keyboard enters a secret, which it neither corrects nor learns from.
Trait Implementations§
Source§impl Clone for KeyboardType
impl Clone for KeyboardType
impl Copy for KeyboardType
Source§impl Debug for KeyboardType
impl Debug for KeyboardType
Source§impl Default for KeyboardType
impl Default for KeyboardType
impl Eq for KeyboardType
Source§impl Hash for KeyboardType
impl Hash for KeyboardType
Source§impl PartialEq for KeyboardType
impl PartialEq for KeyboardType
impl StructuralPartialEq for KeyboardType
Auto Trait Implementations§
impl Freeze for KeyboardType
impl RefUnwindSafe for KeyboardType
impl Send for KeyboardType
impl Sync for KeyboardType
impl Unpin for KeyboardType
impl UnsafeUnpin for KeyboardType
impl UnwindSafe for KeyboardType
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
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