pub enum EditKind {
Typing,
Deleting,
Other,
}Expand description
Decides whether a transaction may join the previous undo step.
Variants§
Typing
Single printable characters. Consecutive typing undoes as one step.
Deleting
Backspace and Delete. Consecutive deletions undo as one step.
Other
Anything else: always its own undo step.
Trait Implementations§
impl Copy for EditKind
impl Eq for EditKind
impl StructuralPartialEq for EditKind
Auto Trait Implementations§
impl Forget for EditKind
impl Freeze for EditKind
impl Move for EditKind
impl RefUnwindSafe for EditKind
impl Send for EditKind
impl Sync for EditKind
impl Unpin for EditKind
impl UnsafeUnpin for EditKind
impl UnwindSafe for EditKind
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