pub struct AppliedChange {
pub op: EditOp,
pub removed_text: String,
pub revision_before: Revision,
pub revision_after: Revision,
pub selections_before: Vec<Selection>,
pub selections_after: Vec<Selection>,
pub checksum_after: u64,
}Expand description
One atomic edit and the information a host persistence adapter needs.
Fields§
§op: EditOpApplied operation.
removed_text: StringText removed by the operation, empty for inserts.
revision_before: RevisionRevision before the operation.
revision_after: RevisionRevision after the operation.
selections_before: Vec<Selection>Selection state recorded before the operation.
selections_after: Vec<Selection>Selection state recorded after the operation.
checksum_after: u64Running checksum immediately after this operation.
Trait Implementations§
Source§impl Clone for AppliedChange
impl Clone for AppliedChange
Source§impl Debug for AppliedChange
impl Debug for AppliedChange
impl Eq for AppliedChange
Source§impl PartialEq for AppliedChange
impl PartialEq for AppliedChange
impl StructuralPartialEq for AppliedChange
Auto Trait Implementations§
impl Forget for AppliedChange
impl Freeze for AppliedChange
impl Move for AppliedChange
impl RefUnwindSafe for AppliedChange
impl Send for AppliedChange
impl Sync for AppliedChange
impl Unpin for AppliedChange
impl UnsafeUnpin for AppliedChange
impl UnwindSafe for AppliedChange
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