ruifeng/diff/algorithms does not have a README file
pub(open) trait DiffHook {
equal(Self, old_index : Int, new_index : Int, len : Int) -> Result[Unit, Error] = _
delete(Self, old_index : Int, old_len : Int, new_index : Int) -> Result[Unit, Error] = _
insert(Self, old_index : Int, new_index : Int, new_len : Int) -> Result[Unit, Error] = _
replace(Self, old_index : Int, old_len : Int, new_index : Int, new_len : Int) -> Result[Unit, Error] = _
finish(Self) -> Result[Unit, Error] = _
}type Capturefn replace(self : Capture, old_index : Int, old_len : Int, new_index : Int, new_len : Int) -> Result[Unit, Error]pub(all) enum DiffOp {
Equal(Int, Int, Int)
Delete(Int, Int, Int)
Insert(Int, Int, Int)
Replace(Int, Int, Int, Int)
}pub type Myerspub(all) struct NoFinishHook[D] {
d : D
}pub(all) struct Patience[T, D] {
d : D
old : Array[T]
old_current : Int
old_end : Int
old_indexes : Array[UniqueItem[T]]
new : Array[T]
new_current : Int
new_end : Int
new_indexes : Array[UniqueItem[T]]
}pub(all) struct Range {
start : Int
end : Int
}pub(all) struct Replace[D] {
d : D
del : (Int, Int, Int)?
ins : (Int, Int, Int)?
eq : (Int, Int, Int)?
}type UniqueItem[T]type V