pub struct InputHints { /* private fields */ }
Implementations§
Source§impl InputHints
impl InputHints
pub const NONE: InputHints
pub const SPELLCHECK: InputHints
pub const NO_SPELLCHECK: InputHints
pub const WORD_COMPLETION: InputHints
pub const LOWERCASE: InputHints
pub const UPPERCASE_CHARS: InputHints
pub const UPPERCASE_WORDS: InputHints
pub const UPPERCASE_SENTENCES: InputHints
pub const INHIBIT_OSK: InputHints
pub const VERTICAL_WRITING: InputHints
Sourcepub const fn empty() -> InputHints
pub const fn empty() -> InputHints
Returns an empty set of flags
Sourcepub const fn all() -> InputHints
pub const fn all() -> InputHints
Returns the set containing all flags.
Sourcepub fn from_bits(bits: u32) -> Option<InputHints>
pub fn from_bits(bits: u32) -> Option<InputHints>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub const fn from_bits_truncate(bits: u32) -> InputHints
pub const fn from_bits_truncate(bits: u32) -> InputHints
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const unsafe fn from_bits_unchecked(bits: u32) -> InputHints
pub const unsafe fn from_bits_unchecked(bits: u32) -> InputHints
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Sourcepub const fn intersects(&self, other: InputHints) -> bool
pub const fn intersects(&self, other: InputHints) -> bool
Returns true
if there are flags common to both self
and other
.
Sourcepub const fn contains(&self, other: InputHints) -> bool
pub const fn contains(&self, other: InputHints) -> bool
Returns true
all of the flags in other
are contained within self
.
Sourcepub fn insert(&mut self, other: InputHints)
pub fn insert(&mut self, other: InputHints)
Inserts the specified flags in-place.
Sourcepub fn remove(&mut self, other: InputHints)
pub fn remove(&mut self, other: InputHints)
Removes the specified flags in-place.
Sourcepub fn toggle(&mut self, other: InputHints)
pub fn toggle(&mut self, other: InputHints)
Toggles the specified flags in-place.
Sourcepub fn set(&mut self, other: InputHints, value: bool)
pub fn set(&mut self, other: InputHints, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations§
Source§impl Binary for InputHints
impl Binary for InputHints
Source§impl BitAnd for InputHints
impl BitAnd for InputHints
Source§fn bitand(self, other: InputHints) -> InputHints
fn bitand(self, other: InputHints) -> InputHints
Returns the intersection between the two sets of flags.
Source§type Output = InputHints
type Output = InputHints
&
operator.Source§impl BitAndAssign for InputHints
impl BitAndAssign for InputHints
Source§fn bitand_assign(&mut self, other: InputHints)
fn bitand_assign(&mut self, other: InputHints)
Disables all flags disabled in the set.
Source§impl BitOr for InputHints
impl BitOr for InputHints
Source§fn bitor(self, other: InputHints) -> InputHints
fn bitor(self, other: InputHints) -> InputHints
Returns the union of the two sets of flags.
Source§type Output = InputHints
type Output = InputHints
|
operator.Source§impl BitOrAssign for InputHints
impl BitOrAssign for InputHints
Source§fn bitor_assign(&mut self, other: InputHints)
fn bitor_assign(&mut self, other: InputHints)
Adds the set of flags.
Source§impl BitXor for InputHints
impl BitXor for InputHints
Source§fn bitxor(self, other: InputHints) -> InputHints
fn bitxor(self, other: InputHints) -> InputHints
Returns the left flags, but with all the right flags toggled.
Source§type Output = InputHints
type Output = InputHints
^
operator.Source§impl BitXorAssign for InputHints
impl BitXorAssign for InputHints
Source§fn bitxor_assign(&mut self, other: InputHints)
fn bitxor_assign(&mut self, other: InputHints)
Toggles the set of flags.
Source§impl Clone for InputHints
impl Clone for InputHints
Source§fn clone(&self) -> InputHints
fn clone(&self) -> InputHints
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for InputHints
impl Debug for InputHints
Source§impl Extend<InputHints> for InputHints
impl Extend<InputHints> for InputHints
Source§fn extend<T: IntoIterator<Item = InputHints>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = InputHints>>(&mut self, iterator: T)
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)Source§impl FromIterator<InputHints> for InputHints
impl FromIterator<InputHints> for InputHints
Source§fn from_iter<T: IntoIterator<Item = InputHints>>(iterator: T) -> InputHints
fn from_iter<T: IntoIterator<Item = InputHints>>(iterator: T) -> InputHints
Source§impl<'a> FromValue<'a> for InputHints
impl<'a> FromValue<'a> for InputHints
unsafe fn from_value(value: &Value) -> Self
Source§impl<'a> FromValueOptional<'a> for InputHints
impl<'a> FromValueOptional<'a> for InputHints
unsafe fn from_value_optional(value: &Value) -> Option<Self>
Source§impl Hash for InputHints
impl Hash for InputHints
Source§impl LowerHex for InputHints
impl LowerHex for InputHints
Source§impl Not for InputHints
impl Not for InputHints
Source§fn not(self) -> InputHints
fn not(self) -> InputHints
Returns the complement of this set of flags.
Source§type Output = InputHints
type Output = InputHints
!
operator.Source§impl Octal for InputHints
impl Octal for InputHints
Source§impl Ord for InputHints
impl Ord for InputHints
Source§fn cmp(&self, other: &InputHints) -> Ordering
fn cmp(&self, other: &InputHints) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for InputHints
impl PartialEq for InputHints
Source§impl PartialOrd for InputHints
impl PartialOrd for InputHints
Source§impl StaticType for InputHints
impl StaticType for InputHints
Source§fn static_type() -> Type
fn static_type() -> Type
Self
.Source§impl Sub for InputHints
impl Sub for InputHints
Source§fn sub(self, other: InputHints) -> InputHints
fn sub(self, other: InputHints) -> InputHints
Returns the set difference of the two sets of flags.
Source§type Output = InputHints
type Output = InputHints
-
operator.Source§impl SubAssign for InputHints
impl SubAssign for InputHints
Source§fn sub_assign(&mut self, other: InputHints)
fn sub_assign(&mut self, other: InputHints)
Disables all flags enabled in the set.
Source§impl UpperHex for InputHints
impl UpperHex for InputHints
impl Copy for InputHints
impl Eq for InputHints
impl StructuralPartialEq for InputHints
Auto Trait Implementations§
impl Freeze for InputHints
impl RefUnwindSafe for InputHints
impl Send for InputHints
impl Sync for InputHints
impl Unpin for InputHints
impl UnwindSafe for InputHints
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue
clone of self
.