pub struct UndoGroup {
pub id: UndoGroupId,
pub parent: Option<UndoGroupId>,
pub ops: Vec<EditRecord>,
pub timestamp_ms: i64,
pub command: String,
}Expand description
A coalesced unit of undo (typing in a single 500ms run, one paste, one multi-cursor edit, one find-replace fanout, etc.).
Fields§
§id: UndoGroupIdStable id (UUIDv7).
parent: Option<UndoGroupId>The group’s parent in the tree. None for the root group.
ops: Vec<EditRecord>Edits in application order.
timestamp_ms: i64Wall-clock millis of group creation.
command: StringThe command that produced this group (for display in the picker and
the persisted undo_groups.command_name column).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for UndoGroup
impl Freeze for UndoGroup
impl Move for UndoGroup
impl RefUnwindSafe for UndoGroup
impl Send for UndoGroup
impl Sync for UndoGroup
impl Unpin for UndoGroup
impl UnsafeUnpin for UndoGroup
impl UnwindSafe for UndoGroup
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