pub fn print_batch(batch: Batch<'_>, settings: &Settings) -> String
Expand description
Prints a batch as a diff.
Converts a batch to a diff string, adhering to the given width and align (in settings
).
§Arguments
batch
: The batch to print.
settings
: Settings object containing a width and align rule.
§Returns
A diff string representing the given batch.