#[derive(Debug, Clone, PartialEq, Eq)]
pub enum Operation {
Delete,
Insert,
Equal,
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct StringDiff {
pub operation: Operation,
pub text: String,
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Patch {
pub diffs: Vec<StringDiff>,
pub start1: i32,
pub start2: i32,
pub length1: i32,
pub length2: i32,
}