pub enum TextEditKind {
Insert,
DeleteBackward,
DeleteForward,
Replace,
ImeCommit,
}Expand description
Classification of a text buffer mutation used to decide Undo coalescing boundaries.
Variants§
Insert
Forward character or string insertion.
DeleteBackward
Backward deletion (Backspace).
DeleteForward
Forward deletion (Delete).
Replace
Explicit selection replacement, paste, or bulk edit (never coalesced).
ImeCommit
Committed IME composition string (always recorded as a discrete undo step).
Trait Implementations§
Source§impl Clone for TextEditKind
impl Clone for TextEditKind
impl Copy for TextEditKind
Source§impl Debug for TextEditKind
impl Debug for TextEditKind
Source§impl Default for TextEditKind
impl Default for TextEditKind
impl Eq for TextEditKind
Source§impl Hash for TextEditKind
impl Hash for TextEditKind
Source§impl Ord for TextEditKind
impl Ord for TextEditKind
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for TextEditKind
impl PartialEq for TextEditKind
Source§impl PartialOrd for TextEditKind
impl PartialOrd for TextEditKind
impl StructuralPartialEq for TextEditKind
Auto Trait Implementations§
impl Forget for TextEditKind
impl Freeze for TextEditKind
impl Move for TextEditKind
impl RefUnwindSafe for TextEditKind
impl Send for TextEditKind
impl Sync for TextEditKind
impl Unpin for TextEditKind
impl UnsafeUnpin for TextEditKind
impl UnwindSafe for TextEditKind
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