Struct ContentHint
pub struct ContentHint(/* private fields */);wayland and Linux only.Expand description
content hint
Content hint is a bitmask to allow to modify the behavior of the text input.
Implementations§
§impl ContentHint
impl ContentHint
pub const None: ContentHint
pub const None: ContentHint
no special behavior
pub const Completion: ContentHint
pub const Completion: ContentHint
suggest word completions
pub const Spellcheck: ContentHint
pub const Spellcheck: ContentHint
suggest word corrections
pub const AutoCapitalization: ContentHint
pub const AutoCapitalization: ContentHint
switch to uppercase letters at the start of a sentence
pub const Lowercase: ContentHint
pub const Lowercase: ContentHint
prefer lowercase letters
pub const Uppercase: ContentHint
pub const Uppercase: ContentHint
prefer uppercase letters
pub const Titlecase: ContentHint
pub const Titlecase: ContentHint
prefer casing for titles and headings (can be language dependent)
pub const HiddenText: ContentHint
pub const HiddenText: ContentHint
characters should be hidden
pub const SensitiveData: ContentHint
pub const SensitiveData: ContentHint
typed text should not be stored
pub const Latin: ContentHint
pub const Latin: ContentHint
just Latin characters should be entered
pub const Multiline: ContentHint
pub const Multiline: ContentHint
the text input is multiline
§impl ContentHint
impl ContentHint
pub const fn empty() -> ContentHint
pub const fn empty() -> ContentHint
Get a flags value with all bits unset.
pub const fn all() -> ContentHint
pub const fn all() -> ContentHint
Get a flags value with all known bits set.
pub const fn bits(&self) -> u32
pub const fn bits(&self) -> u32
Get the underlying bits value.
The returned value is exactly the bits set in this flags value.
pub const fn from_bits(bits: u32) -> Option<ContentHint>
pub const fn from_bits(bits: u32) -> Option<ContentHint>
Convert from a bits value.
This method will return None if any unknown bits are set.
pub const fn from_bits_truncate(bits: u32) -> ContentHint
pub const fn from_bits_truncate(bits: u32) -> ContentHint
Convert from a bits value, unsetting any unknown bits.
pub const fn from_bits_retain(bits: u32) -> ContentHint
pub const fn from_bits_retain(bits: u32) -> ContentHint
Convert from a bits value exactly.
pub fn from_name(name: &str) -> Option<ContentHint>
pub fn from_name(name: &str) -> Option<ContentHint>
Get a flags value with the bits of a flag with the given name set.
This method will return None if name is empty or doesn’t
correspond to any named flag.
pub const fn intersects(&self, other: ContentHint) -> bool
pub const fn intersects(&self, other: ContentHint) -> bool
Whether any set bits in other are also set in self.
pub const fn contains(&self, other: ContentHint) -> bool
pub const fn contains(&self, other: ContentHint) -> bool
Whether all set bits in other are also set in self.
pub fn insert(&mut self, other: ContentHint)
pub fn insert(&mut self, other: ContentHint)
The bitwise or (|) of the bits in self and other.
pub fn remove(&mut self, other: ContentHint)
pub fn remove(&mut self, other: ContentHint)
The intersection of self with the complement of other (&!).
This method is not equivalent to self & !other when other has unknown bits set.
remove won’t truncate other, but the ! operator will.
pub fn toggle(&mut self, other: ContentHint)
pub fn toggle(&mut self, other: ContentHint)
The bitwise exclusive-or (^) of the bits in self and other.
pub fn set(&mut self, other: ContentHint, value: bool)
pub fn set(&mut self, other: ContentHint, value: bool)
Call insert when value is true or remove when value is false.
pub const fn intersection(self, other: ContentHint) -> ContentHint
pub const fn intersection(self, other: ContentHint) -> ContentHint
The bitwise and (&) of the bits in self and other.
pub const fn union(self, other: ContentHint) -> ContentHint
pub const fn union(self, other: ContentHint) -> ContentHint
The bitwise or (|) of the bits in self and other.
pub const fn difference(self, other: ContentHint) -> ContentHint
pub const fn difference(self, other: ContentHint) -> ContentHint
The intersection of self with the complement of other (&!).
This method is not equivalent to self & !other when other has unknown bits set.
difference won’t truncate other, but the ! operator will.
pub const fn symmetric_difference(self, other: ContentHint) -> ContentHint
pub const fn symmetric_difference(self, other: ContentHint) -> ContentHint
The bitwise exclusive-or (^) of the bits in self and other.
pub const fn complement(self) -> ContentHint
pub const fn complement(self) -> ContentHint
The bitwise negation (!) of the bits in self, truncating the result.
§impl ContentHint
impl ContentHint
pub const fn iter(&self) -> Iter<ContentHint>
pub const fn iter(&self) -> Iter<ContentHint>
Yield a set of contained flags values.
Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.
pub const fn iter_names(&self) -> IterNames<ContentHint>
pub const fn iter_names(&self) -> IterNames<ContentHint>
Yield a set of contained named flags values.
This method is like iter, except only yields bits in contained named flags.
Any unknown bits, or bits not corresponding to a contained flag will not be yielded.
Trait Implementations§
§impl Binary for ContentHint
impl Binary for ContentHint
§impl BitAnd for ContentHint
impl BitAnd for ContentHint
§fn bitand(self, other: ContentHint) -> ContentHint
fn bitand(self, other: ContentHint) -> ContentHint
The bitwise and (&) of the bits in self and other.
§type Output = ContentHint
type Output = ContentHint
& operator.§impl BitAndAssign for ContentHint
impl BitAndAssign for ContentHint
§fn bitand_assign(&mut self, other: ContentHint)
fn bitand_assign(&mut self, other: ContentHint)
The bitwise and (&) of the bits in self and other.
§impl BitOr for ContentHint
impl BitOr for ContentHint
§fn bitor(self, other: ContentHint) -> ContentHint
fn bitor(self, other: ContentHint) -> ContentHint
The bitwise or (|) of the bits in self and other.
§type Output = ContentHint
type Output = ContentHint
| operator.§impl BitOrAssign for ContentHint
impl BitOrAssign for ContentHint
§fn bitor_assign(&mut self, other: ContentHint)
fn bitor_assign(&mut self, other: ContentHint)
The bitwise or (|) of the bits in self and other.
§impl BitXor for ContentHint
impl BitXor for ContentHint
§fn bitxor(self, other: ContentHint) -> ContentHint
fn bitxor(self, other: ContentHint) -> ContentHint
The bitwise exclusive-or (^) of the bits in self and other.
§type Output = ContentHint
type Output = ContentHint
^ operator.§impl BitXorAssign for ContentHint
impl BitXorAssign for ContentHint
§fn bitxor_assign(&mut self, other: ContentHint)
fn bitxor_assign(&mut self, other: ContentHint)
The bitwise exclusive-or (^) of the bits in self and other.
§impl Clone for ContentHint
impl Clone for ContentHint
§fn clone(&self) -> ContentHint
fn clone(&self) -> ContentHint
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for ContentHint
impl Debug for ContentHint
§impl Extend<ContentHint> for ContentHint
impl Extend<ContentHint> for ContentHint
§fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = ContentHint>,
fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = ContentHint>,
The bitwise or (|) of the bits in each flags value.
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)§impl Flags for ContentHint
impl Flags for ContentHint
§const FLAGS: &'static [Flag<ContentHint>]
const FLAGS: &'static [Flag<ContentHint>]
§fn from_bits_retain(bits: u32) -> ContentHint
fn from_bits_retain(bits: u32) -> ContentHint
§fn known_bits(&self) -> Self::Bits
fn known_bits(&self) -> Self::Bits
§fn unknown_bits(&self) -> Self::Bits
fn unknown_bits(&self) -> Self::Bits
§fn contains_unknown_bits(&self) -> bool
fn contains_unknown_bits(&self) -> bool
true if any unknown bits are set.§fn from_bits_truncate(bits: Self::Bits) -> Self
fn from_bits_truncate(bits: Self::Bits) -> Self
§fn from_name(name: &str) -> Option<Self>
fn from_name(name: &str) -> Option<Self>
§fn iter_names(&self) -> IterNames<Self>
fn iter_names(&self) -> IterNames<Self>
§fn iter_defined_names() -> IterDefinedNames<Self>
fn iter_defined_names() -> IterDefinedNames<Self>
Self::FLAGS].§fn intersects(&self, other: Self) -> boolwhere
Self: Sized,
fn intersects(&self, other: Self) -> boolwhere
Self: Sized,
other are also set in self.§fn contains(&self, other: Self) -> boolwhere
Self: Sized,
fn contains(&self, other: Self) -> boolwhere
Self: Sized,
other are also set in self.§fn insert(&mut self, other: Self)where
Self: Sized,
fn insert(&mut self, other: Self)where
Self: Sized,
|) of the bits in self and other.§fn toggle(&mut self, other: Self)where
Self: Sized,
fn toggle(&mut self, other: Self)where
Self: Sized,
^) of the bits in self and other.§fn set(&mut self, other: Self, value: bool)where
Self: Sized,
fn set(&mut self, other: Self, value: bool)where
Self: Sized,
Flags::insert] when value is true or [Flags::remove] when value is false.§fn intersection(self, other: Self) -> Self
fn intersection(self, other: Self) -> Self
&) of the bits in self and other.§fn difference(self, other: Self) -> Self
fn difference(self, other: Self) -> Self
§fn symmetric_difference(self, other: Self) -> Self
fn symmetric_difference(self, other: Self) -> Self
^) of the bits in self and other.§fn complement(self) -> Self
fn complement(self) -> Self
!) of the bits in self, truncating the result.§impl FromIterator<ContentHint> for ContentHint
impl FromIterator<ContentHint> for ContentHint
§fn from_iter<T>(iterator: T) -> ContentHintwhere
T: IntoIterator<Item = ContentHint>,
fn from_iter<T>(iterator: T) -> ContentHintwhere
T: IntoIterator<Item = ContentHint>,
The bitwise or (|) of the bits in each flags value.
§impl Hash for ContentHint
impl Hash for ContentHint
§impl IntoIterator for ContentHint
impl IntoIterator for ContentHint
§type Item = ContentHint
type Item = ContentHint
§type IntoIter = Iter<ContentHint>
type IntoIter = Iter<ContentHint>
§fn into_iter(self) -> <ContentHint as IntoIterator>::IntoIter
fn into_iter(self) -> <ContentHint as IntoIterator>::IntoIter
§impl LowerHex for ContentHint
impl LowerHex for ContentHint
§impl Not for ContentHint
impl Not for ContentHint
§fn not(self) -> ContentHint
fn not(self) -> ContentHint
The bitwise negation (!) of the bits in self, truncating the result.
§type Output = ContentHint
type Output = ContentHint
! operator.§impl Octal for ContentHint
impl Octal for ContentHint
§impl PartialEq for ContentHint
impl PartialEq for ContentHint
§impl Sub for ContentHint
impl Sub for ContentHint
§fn sub(self, other: ContentHint) -> ContentHint
fn sub(self, other: ContentHint) -> ContentHint
The intersection of self with the complement of other (&!).
This method is not equivalent to self & !other when other has unknown bits set.
difference won’t truncate other, but the ! operator will.
§type Output = ContentHint
type Output = ContentHint
- operator.§impl SubAssign for ContentHint
impl SubAssign for ContentHint
§fn sub_assign(&mut self, other: ContentHint)
fn sub_assign(&mut self, other: ContentHint)
The intersection of self with the complement of other (&!).
This method is not equivalent to self & !other when other has unknown bits set.
difference won’t truncate other, but the ! operator will.
§impl TryFrom<u32> for ContentHint
impl TryFrom<u32> for ContentHint
§impl UpperHex for ContentHint
impl UpperHex 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<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Real + Zero + Arithmetics + Clone,
Swp: WhitePoint<T>,
Dwp: WhitePoint<T>,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Real + Zero + Arithmetics + Clone,
Swp: WhitePoint<T>,
Dwp: WhitePoint<T>,
D: AdaptFrom<S, Swp, Dwp, T>,
Source§fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<T>,
fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<T>,
Source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
§impl<T> AnyEq for T
impl<T> AnyEq for T
§impl<T, Res> Apply<Res> for Twhere
T: ?Sized,
impl<T, Res> Apply<Res> for Twhere
T: ?Sized,
Source§impl<T, C> ArraysFrom<C> for Twhere
C: IntoArrays<T>,
impl<T, C> ArraysFrom<C> for Twhere
C: IntoArrays<T>,
Source§fn arrays_from(colors: C) -> T
fn arrays_from(colors: C) -> T
Source§impl<T, C> ArraysInto<C> for Twhere
C: FromArrays<T>,
impl<T, C> ArraysInto<C> for Twhere
C: FromArrays<T>,
Source§fn arrays_into(self) -> C
fn arrays_into(self) -> C
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<WpParam, T, U> Cam16IntoUnclamped<WpParam, T> for Uwhere
T: FromCam16Unclamped<WpParam, U>,
impl<WpParam, T, U> Cam16IntoUnclamped<WpParam, T> for Uwhere
T: FromCam16Unclamped<WpParam, U>,
Source§type Scalar = <T as FromCam16Unclamped<WpParam, U>>::Scalar
type Scalar = <T as FromCam16Unclamped<WpParam, U>>::Scalar
parameters when converting.Source§fn cam16_into_unclamped(
self,
parameters: BakedParameters<WpParam, <U as Cam16IntoUnclamped<WpParam, T>>::Scalar>,
) -> T
fn cam16_into_unclamped( self, parameters: BakedParameters<WpParam, <U as Cam16IntoUnclamped<WpParam, T>>::Scalar>, ) -> T
self into C, using the provided parameters.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, C> ComponentsFrom<C> for Twhere
C: IntoComponents<T>,
impl<T, C> ComponentsFrom<C> for Twhere
C: IntoComponents<T>,
Source§fn components_from(colors: C) -> T
fn components_from(colors: C) -> T
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
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.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> FromAngle<T> for T
impl<T> FromAngle<T> for T
Source§fn from_angle(angle: T) -> T
fn from_angle(angle: T) -> T
angle.Source§impl<T, U> FromStimulus<U> for Twhere
U: IntoStimulus<T>,
impl<T, U> FromStimulus<U> for Twhere
U: IntoStimulus<T>,
Source§fn from_stimulus(other: U) -> T
fn from_stimulus(other: U) -> T
other into Self, while performing the appropriate scaling,
rounding and clamping.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T, U> IntoAngle<U> for Twhere
U: FromAngle<T>,
impl<T, U> IntoAngle<U> for Twhere
U: FromAngle<T>,
Source§fn into_angle(self) -> U
fn into_angle(self) -> U
T.§impl<State, Message> IntoBoot<State, Message> for State
impl<State, Message> IntoBoot<State, Message> for State
§fn into_boot(self) -> (State, Task<Message>)
fn into_boot(self) -> (State, Task<Message>)
Application.Source§impl<WpParam, T, U> IntoCam16Unclamped<WpParam, T> for Uwhere
T: Cam16FromUnclamped<WpParam, U>,
impl<WpParam, T, U> IntoCam16Unclamped<WpParam, T> for Uwhere
T: Cam16FromUnclamped<WpParam, U>,
Source§type Scalar = <T as Cam16FromUnclamped<WpParam, U>>::Scalar
type Scalar = <T as Cam16FromUnclamped<WpParam, U>>::Scalar
parameters when converting.Source§fn into_cam16_unclamped(
self,
parameters: BakedParameters<WpParam, <U as IntoCam16Unclamped<WpParam, T>>::Scalar>,
) -> T
fn into_cam16_unclamped( self, parameters: BakedParameters<WpParam, <U as IntoCam16Unclamped<WpParam, T>>::Scalar>, ) -> T
self into C, using the provided parameters.Source§impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
Source§fn into_color(self) -> U
fn into_color(self) -> U
Source§impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
Source§fn into_color_unclamped(self) -> U
fn into_color_unclamped(self) -> U
Source§impl<T> IntoStimulus<T> for T
impl<T> IntoStimulus<T> for T
Source§fn into_stimulus(self) -> T
fn into_stimulus(self) -> T
self into T, while performing the appropriate scaling,
rounding and clamping.Source§impl<T, C> TryComponentsInto<C> for Twhere
C: TryFromComponents<T>,
impl<T, C> TryComponentsInto<C> for Twhere
C: TryFromComponents<T>,
Source§type Error = <C as TryFromComponents<T>>::Error
type Error = <C as TryFromComponents<T>>::Error
try_into_colors fails to cast.Source§fn try_components_into(self) -> Result<C, <T as TryComponentsInto<C>>::Error>
fn try_components_into(self) -> Result<C, <T as TryComponentsInto<C>>::Error>
Source§impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
Source§fn try_into_color(self) -> Result<U, OutOfBounds<U>>
fn try_into_color(self) -> Result<U, OutOfBounds<U>>
OutOfBounds error is returned which contains
the unclamped color. Read more