#[non_exhaustive]#[repr(C)]pub struct InputMethodHints {
pub capitalization: CapitalizationMode,
pub auto_correct: bool,
pub auto_complete: bool,
}Expand description
This structure holds the hints that a TextInput gives to the platform’s input method
(e.g. a soft keyboard) about the expected input.
The input method may take these hints into account, but might also ignore them.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.capitalization: CapitalizationModeThe auto-capitalization behavior that the input method should apply.
Defaults to CapitalizationMode::Sentences.
auto_correct: boolHint that the input method may automatically correct spelling mistakes as the user types.
Defaults to true.
auto_complete: boolHint that the input method may offer auto-completion suggestions for the entered text.
Defaults to true.
Trait Implementations§
Source§impl Clone for InputMethodHints
impl Clone for InputMethodHints
Source§fn clone(&self) -> InputMethodHints
fn clone(&self) -> InputMethodHints
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InputMethodHints
impl Debug for InputMethodHints
Source§impl Default for InputMethodHints
impl Default for InputMethodHints
Source§impl PartialEq for InputMethodHints
impl PartialEq for InputMethodHints
impl StructuralPartialEq for InputMethodHints
Auto Trait Implementations§
impl Freeze for InputMethodHints
impl RefUnwindSafe for InputMethodHints
impl Send for InputMethodHints
impl Sync for InputMethodHints
impl Unpin for InputMethodHints
impl UnsafeUnpin for InputMethodHints
impl UnwindSafe for InputMethodHints
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