Module rustfmt_nightly::rustfmt_diff [] [src]

Structs

Mismatch
OutputWriter

Enums

DiffLine

Functions

make_diff
output_modified

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.

print_diff