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§fn clone(&self) -> UndoHistoryStep
fn clone(&self) -> UndoHistoryStep
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UndoHistoryStep
impl Debug for UndoHistoryStep
impl Eq for UndoHistoryStep
Source§impl PartialEq for UndoHistoryStep
impl PartialEq for UndoHistoryStep
Source§fn eq(&self, other: &UndoHistoryStep) -> bool
fn eq(&self, other: &UndoHistoryStep) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UndoHistoryStep
Auto Trait Implementations§
impl Freeze for UndoHistoryStep
impl RefUnwindSafe for UndoHistoryStep
impl Send for UndoHistoryStep
impl Sync for UndoHistoryStep
impl Unpin for UndoHistoryStep
impl UnsafeUnpin for UndoHistoryStep
impl UnwindSafe for UndoHistoryStep
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