[−][src]Function difference::print_diff
pub fn print_diff(orig: &str, edit: &str, split: &str)
Deprecated since 1.0.0:
Changeset
now implements the Display
trait instead
This function is deprecated, Changeset
now implements the Display
trait instead
Prints a colorful visual representation of the diff. This is just a convenience function for those who want quick results.
I recommend checking out the examples on how to build your own diff output.
Examples
use difference::print_diff; print_diff("Diffs are awesome", "Diffs are cool", " ");