Module delta
Expand description
A data structure for representing editing operations on ropes. It’s useful to explicitly represent these operations so they can be shared across multiple subsystems.
Structs§
- Builder
- A builder for creating new
Deltaobjects. - Deletions
Iter - Delta
- Represents changes to a document by describing the new document as a sequence of sections copied from the old document and of new inserted text. Deletions are represented by gaps in the ranges copied from the old document.
- Delta
Region - Insert
Delta - A struct marking that a Delta contains only insertions. That is, it copies
all of the old document in the same order. It has a
Derefimpl so all normalDeltamethods can also be used on it. - Inserts
Iter - Transformer
- A mapping from coordinates in the source sequence to coordinates in the sequence after the delta is applied.