#[non_exhaustive]pub struct ContentPurpose(pub u32);Expand description
content purpose
The content purpose allows to specify the primary purpose of a text input.
This allows an input method to show special purpose input panels with extra characters or to disallow some characters.
Tuple 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.0: u32Implementations§
Trait Implementations§
Source§impl Clone for ContentPurpose
impl Clone for ContentPurpose
Source§fn clone(&self) -> ContentPurpose
fn clone(&self) -> ContentPurpose
Returns a duplicate 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 ContentPurpose
impl Debug for ContentPurpose
Source§impl From<ContentPurpose> for u32
impl From<ContentPurpose> for u32
Source§fn from(val: ContentPurpose) -> u32
fn from(val: ContentPurpose) -> u32
Converts to this type from the input type.
Source§impl Hash for ContentPurpose
impl Hash for ContentPurpose
Source§impl Ord for ContentPurpose
impl Ord for ContentPurpose
Source§fn cmp(&self, other: &ContentPurpose) -> Ordering
fn cmp(&self, other: &ContentPurpose) -> 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 ContentPurpose
impl PartialEq for ContentPurpose
Source§impl PartialOrd for ContentPurpose
impl PartialOrd for ContentPurpose
Source§impl TryFrom<u32> for ContentPurpose
impl TryFrom<u32> for ContentPurpose
impl Copy for ContentPurpose
impl Eq for ContentPurpose
impl StructuralPartialEq for ContentPurpose
Auto Trait Implementations§
impl Freeze for ContentPurpose
impl RefUnwindSafe for ContentPurpose
impl Send for ContentPurpose
impl Sync for ContentPurpose
impl Unpin for ContentPurpose
impl UnsafeUnpin for ContentPurpose
impl UnwindSafe for ContentPurpose
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