pub enum ImeState {
Inactive,
Composing {
preedit_text: String,
cursor_offset: usize,
selection_range: Option<(usize, usize)>,
},
Committed(String),
}Expand description
Lifecycle states of an active IME text composition session.
Variants§
Inactive
Composing
Actively composing pre-edit candidate text (e.g. pinyin or hiragana).
Committed(String)
Text was finalized and committed to the document buffer.
Trait Implementations§
impl Eq for ImeState
impl StructuralPartialEq for ImeState
Auto Trait Implementations§
impl Forget for ImeState
impl Freeze for ImeState
impl Move for ImeState
impl RefUnwindSafe for ImeState
impl Send for ImeState
impl Sync for ImeState
impl Unpin for ImeState
impl UnsafeUnpin for ImeState
impl UnwindSafe for ImeState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.