pub struct UndoHistoryStep {
pub group_id: usize,
pub edits: Vec<UndoHistoryTextEdit>,
pub before_selection: UndoHistorySelectionSet,
pub after_selection: UndoHistorySelectionSet,
}Expand description
A single undo/redo step in a persisted history snapshot.
Fields§
§group_id: usizeUndo group id. Grouped undo pops all adjacent steps with the same id.
edits: Vec<UndoHistoryTextEdit>Text edits captured by this step.
before_selection: UndoHistorySelectionSetSelection set snapshot before applying this step.
after_selection: UndoHistorySelectionSetSelection set snapshot after applying this step.
Trait Implementations§
Source§impl Clone for UndoHistoryStep
impl Clone for UndoHistoryStep
Source§impl Debug for UndoHistoryStep
impl Debug for UndoHistoryStep
impl Eq for UndoHistoryStep
Source§impl PartialEq for UndoHistoryStep
impl PartialEq for UndoHistoryStep
impl StructuralPartialEq for UndoHistoryStep
Auto Trait Implementations§
impl Forget for UndoHistoryStep
impl Freeze for UndoHistoryStepwhere
*const u8 is !null: Freeze,
PhantomData<UndoHistoryTextEdit>: Freeze,
PhantomData<Selection>: Freeze,
impl Move for UndoHistoryStep
impl RefUnwindSafe for UndoHistoryStep
impl Send for UndoHistoryStepwhere
RawVecInner: Send,
impl Sync for UndoHistoryStepwhere
RawVecInner: Sync,
impl Unpin for UndoHistoryStep
impl UnsafeUnpin for UndoHistoryStepwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<UndoHistoryTextEdit>: UnsafeUnpin,
PhantomData<Selection>: UnsafeUnpin,
impl UnwindSafe for UndoHistoryStepwhere
RawVecInner: UnwindSafe,
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