pub struct UndoEntry {
pub text: String,
pub cursor_pos: usize,
pub selection_anchor: Option<usize>,
pub action_kind: UndoActionKind,
}Expand description
A snapshot of text state for undo/redo.
Fields§
§text: String§cursor_pos: usize§selection_anchor: Option<usize>§action_kind: UndoActionKindTrait Implementations§
Auto Trait Implementations§
impl Freeze for UndoEntry
impl RefUnwindSafe for UndoEntry
impl Send for UndoEntry
impl Sync for UndoEntry
impl Unpin for UndoEntry
impl UnsafeUnpin for UndoEntry
impl UnwindSafe for UndoEntry
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