pub struct UndoResult {
pub edits: Vec<Edit>,
pub cursor: Position,
}Expand description
Result from an undo or redo operation.
Contains the edits to apply and the cursor position to restore.
Fields§
§edits: Vec<Edit>Edits to apply (already inverted for undo).
cursor: PositionCursor position to restore.
Trait Implementations§
Source§impl Clone for UndoResult
impl Clone for UndoResult
Source§fn clone(&self) -> UndoResult
fn clone(&self) -> UndoResult
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for UndoResult
impl RefUnwindSafe for UndoResult
impl Send for UndoResult
impl Sync for UndoResult
impl Unpin for UndoResult
impl UnsafeUnpin for UndoResult
impl UnwindSafe for UndoResult
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