Function imara_diff::diff_with_tokens
source ยท pub fn diff_with_tokens<S: Sink>(
algorithm: Algorithm,
before: &[Token],
after: &[Token],
num_tokens: u32,
sink: S,
) -> S::Out
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.