gix_diff::blob

Function diff_with_tokens

source
pub fn diff_with_tokens<S>(
    algorithm: Algorithm,
    before: &[Token],
    after: &[Token],
    num_tokens: u32,
    sink: S,
) -> <S as Sink>::Out
where S: Sink,
Available on crate feature blob only.
Expand description

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