pub struct ChangeBatch {Show 13 fields
pub buffer_id: BufferId,
pub kind: MutationKind,
pub timestamp_ms: i64,
pub command: String,
pub revision_before: Revision,
pub revision_after: Revision,
pub undo_group_id: UndoGroupId,
pub new_undo_group: Option<UndoGroupMeta>,
pub selections_before: Vec<Selection>,
pub selections_after: Vec<Selection>,
pub changes: Vec<AppliedChange>,
pub checksum_after: u64,
pub deltas: Vec<RopeEditDeltaWithPoints>,
}Expand description
A complete synchronous engine mutation, ready for host-side persistence.
Fields§
§buffer_id: BufferIdMutated buffer.
kind: MutationKindHigh-level mutation kind.
timestamp_ms: i64Host-supplied wall-clock milliseconds.
command: StringCommand identity for history and host event logs.
revision_before: RevisionRevision before the batch.
revision_after: RevisionRevision after the batch.
undo_group_id: UndoGroupIdUndo group that owns the edit rows.
new_undo_group: Option<UndoGroupMeta>Present only when this batch created the group.
selections_before: Vec<Selection>Selection state before the complete mutation.
selections_after: Vec<Selection>Selection state after the complete mutation.
changes: Vec<AppliedChange>Atomic changes in application order.
checksum_after: u64Incrementally maintained checksum after the batch.
deltas: Vec<RopeEditDeltaWithPoints>Rope deltas in application order.
Trait Implementations§
Source§impl Clone for ChangeBatch
impl Clone for ChangeBatch
Source§fn clone(&self) -> ChangeBatch
fn clone(&self) -> ChangeBatch
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 ChangeBatch
impl Debug for ChangeBatch
impl Eq for ChangeBatch
Source§impl PartialEq for ChangeBatch
impl PartialEq for ChangeBatch
impl StructuralPartialEq for ChangeBatch
Auto Trait Implementations§
impl Freeze for ChangeBatch
impl RefUnwindSafe for ChangeBatch
impl Send for ChangeBatch
impl Sync for ChangeBatch
impl Unpin for ChangeBatch
impl UnsafeUnpin for ChangeBatch
impl UnwindSafe for ChangeBatch
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