Function rustfmt_nightly::rustfmt_diff::output_modified [] [src]

pub fn output_modified<W>(out: W, diff: Vec<Mismatch>) where
    W: Write

Convert a Mismatch into a serialised form which just includes enough information to modify the original file. Each section starts with a line with three integers, space separated: lineno num_removed num_added followed by (num_added) lines of added text. The line numbers are relative to the original file.