Function compute_edit_script

Source
pub fn compute_edit_script<'a>(
    old: &'a [Entry<'a>],
    new: &'a [Entry<'a>],
) -> Result<RichHunks<'a>>
Expand description

Compute the hunks corresponding to the minimum edit path between two documents.

This will process the the AST vectors with the user-provided settings.

This will return two groups of hunks in a tuple of the form (old_hunks, new_hunks).