#[non_exhaustive]#[repr(u32)]pub enum ContentHint {
Show 13 variants
None = 0,
Default = 7,
Password = 192,
AutoCompletion = 1,
AutoCorrection = 2,
AutoCapitalization = 4,
Lowercase = 8,
Uppercase = 16,
Titlecase = 32,
HiddenText = 64,
SensitiveData = 128,
Latin = 256,
Multiline = 512,
}
Expand description
content hint
Content hint is a bitmask to allow to modify the behavior of the text input.
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 = 0
no special behaviour
Default = 7
auto completion, correction and capitalization
Password = 192
hidden and sensitive text
AutoCompletion = 1
suggest word completions
AutoCorrection = 2
suggest word corrections
AutoCapitalization = 4
switch to uppercase letters at the start of a sentence
Lowercase = 8
prefer lowercase letters
Uppercase = 16
prefer uppercase letters
Titlecase = 32
prefer casing for titles and headings (can be language dependent)
HiddenText = 64
characters should be hidden
SensitiveData = 128
typed text should not be stored
Latin = 256
just latin characters should be entered
Multiline = 512
the text input is multiline
Trait Implementations§
source§impl Clone for ContentHint
impl Clone for ContentHint
source§fn clone(&self) -> ContentHint
fn clone(&self) -> ContentHint
Returns a copy 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 ContentHint
impl Debug for ContentHint
source§impl From<ContentHint> for u32
impl From<ContentHint> for u32
source§fn from(val: ContentHint) -> u32
fn from(val: ContentHint) -> u32
Converts to this type from the input type.
source§impl Hash for ContentHint
impl Hash for ContentHint
source§impl Ord for ContentHint
impl Ord for ContentHint
source§fn cmp(&self, other: &ContentHint) -> Ordering
fn cmp(&self, other: &ContentHint) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ContentHint
impl PartialEq for ContentHint
source§impl PartialOrd for ContentHint
impl PartialOrd for ContentHint
source§impl TryFrom<u32> for ContentHint
impl TryFrom<u32> for ContentHint
impl Copy for ContentHint
impl Eq for ContentHint
impl StructuralPartialEq for ContentHint
Auto Trait Implementations§
impl Freeze for ContentHint
impl RefUnwindSafe for ContentHint
impl Send for ContentHint
impl Sync for ContentHint
impl Unpin for ContentHint
impl UnwindSafe for ContentHint
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.