gix_diff::blob

Function diff

source
pub fn diff<S, T>(
    algorithm: Algorithm,
    input: &InternedInput<T>,
    sink: S,
) -> <S as Sink>::Out
where S: Sink, T: Eq + Hash,
Available on crate feature blob only.
Expand description

Computes an edit-script that transforms input.before into input.after using the specified algorithm The edit-script is passed to sink.process_change while it is produced.