#[non_exhaustive]#[repr(u32)]pub enum ChangeCause {
InputMethod = 0,
Other = 1,
}
Expand description
text change reason
Reason for the change of surrounding text or cursor posision.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InputMethod = 0
input method caused the change
Other = 1
something else than the input method caused the change
Implementations§
Trait Implementations§
source§impl Clone for ChangeCause
impl Clone for ChangeCause
source§fn clone(&self) -> ChangeCause
fn clone(&self) -> ChangeCause
Returns a copy 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 ChangeCause
impl Debug for ChangeCause
source§impl PartialEq for ChangeCause
impl PartialEq for ChangeCause
source§fn eq(&self, other: &ChangeCause) -> bool
fn eq(&self, other: &ChangeCause) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ChangeCause
impl StructuralPartialEq for ChangeCause
Auto Trait Implementations§
impl RefUnwindSafe for ChangeCause
impl Send for ChangeCause
impl Sync for ChangeCause
impl Unpin for ChangeCause
impl UnwindSafe for ChangeCause
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