Function apply_diff_trivial

Source
pub fn apply_diff_trivial<'a>(
    input: &'a str,
    diff: &'a str,
) -> Result<DiffResult<'a>, Error>
Available on crate feature slow-diff-apply only.
Expand description

Apply a given diff to an input text, and return the result from applying that diff.

This is a slow version, for testing and correctness checking. It uses an O(n) operation to apply diffs, and therefore runs in O(n^2) time.