pub struct SeqDelta<T> {
pub splices: Vec<Splice<T>>,
}Expand description
A positional diff between two sequences: an ordered edit script.
Splices are sorted by Splice::at and never overlap, and every at
indexes the old sequence rather than the partially-rebuilt one. Holding
to old coordinates is what lets apply run in a single forward pass
without the index-shifting hazards an edit script usually brings.
Fields§
§splices: Vec<Splice<T>>The edit script, in ascending order of Splice::at.
Implementations§
Trait Implementations§
impl<T: Eq> Eq for SeqDelta<T>
impl<T: PartialEq> StructuralPartialEq for SeqDelta<T>
Auto Trait Implementations§
impl<T> Freeze for SeqDelta<T>
impl<T> RefUnwindSafe for SeqDelta<T>where
T: RefUnwindSafe,
impl<T> Send for SeqDelta<T>where
T: Send,
impl<T> Sync for SeqDelta<T>where
T: Sync,
impl<T> Unpin for SeqDelta<T>where
T: Unpin,
impl<T> UnsafeUnpin for SeqDelta<T>
impl<T> UnwindSafe for SeqDelta<T>where
T: UnwindSafe,
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