Skip to main content

inverse_patches

Function inverse_patches 

Source
pub fn inverse_patches(
    original_text: &str,
    patches: &[TextPatch],
) -> Vec<TextPatch>
Expand description

forward パッチ群に対する逆パッチ群を生成する。 apply_patches 済みのテキストへ適用すると、元のテキストへ戻せる。