#[non_exhaustive]pub struct PreeditHint(pub u32);Expand description
preedit style hint
Style hints for the preedit string.
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§
Source§impl PreeditHint
impl PreeditHint
Sourcepub const Selection: Self
pub const Selection: Self
hint for a selected piece of text, e.g. per-character navigation and composition
Sourcepub const Prediction: Self
pub const Prediction: Self
predicted text, not typed by the user
Sourcepub const Prefix: Self
pub const Prefix: Self
prefixed text not being currently edited, e.g. prior to a ‘selection’ section
Sourcepub const Suffix: Self
pub const Suffix: Self
suffixed text not being currently edited, e.g. after a ‘selection’ section
Sourcepub const SpellingError: Self
pub const SpellingError: Self
spelling error
Sourcepub const ComposeError: Self
pub const ComposeError: Self
wrong composition, e.g. user input that can not be transliterated
Trait Implementations§
Source§impl Clone for PreeditHint
impl Clone for PreeditHint
Source§fn clone(&self) -> PreeditHint
fn clone(&self) -> PreeditHint
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 PreeditHint
impl Debug for PreeditHint
Source§impl From<PreeditHint> for u32
impl From<PreeditHint> for u32
Source§fn from(val: PreeditHint) -> u32
fn from(val: PreeditHint) -> u32
Converts to this type from the input type.
Source§impl Hash for PreeditHint
impl Hash for PreeditHint
Source§impl Ord for PreeditHint
impl Ord for PreeditHint
Source§fn cmp(&self, other: &PreeditHint) -> Ordering
fn cmp(&self, other: &PreeditHint) -> 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 PreeditHint
impl PartialEq for PreeditHint
Source§impl PartialOrd for PreeditHint
impl PartialOrd for PreeditHint
Source§impl TryFrom<u32> for PreeditHint
impl TryFrom<u32> for PreeditHint
impl Copy for PreeditHint
impl Eq for PreeditHint
impl StructuralPartialEq for PreeditHint
Auto Trait Implementations§
impl Freeze for PreeditHint
impl RefUnwindSafe for PreeditHint
impl Send for PreeditHint
impl Sync for PreeditHint
impl Unpin for PreeditHint
impl UnsafeUnpin for PreeditHint
impl UnwindSafe for PreeditHint
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