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§
Source§impl<'de, T> Deserialize<'de> for SeqDelta<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for SeqDelta<T>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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>
impl<T> Send for SeqDelta<T>
impl<T> Sync for SeqDelta<T>
impl<T> Unpin for SeqDelta<T>
impl<T> UnsafeUnpin for SeqDelta<T>
impl<T> UnwindSafe for SeqDelta<T>
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