diffkit 0.1.0

A library for diffing and patching sequences and nested structures
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::myers::Edit;

/// Represents a Hunk resulting from a Myers diff.
/// Please note that `changes` will include maximum 3 context elements, i.e. `Edit::Equal`
/// and this is reflected in the `old_start` value
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Hunk<T> {
    pub old_start: usize,
    pub new_start: usize,
    pub changes: Vec<Edit<T>>,
}