Module difft::display::side_by_side
source · Expand description
Side-by-side (two column) display of diffs.
Structs§
Constants§
- SPACER 🔒The space shown between LHS and RHS columns.
Functions§
- Display
srcin a single column (e.g. a file removal or addition). - Calculate positions of highlights on both sides. This includes both syntax highlighting and added/removed content highlighting.
- print 🔒
- Find the longest line in
lhs_srcandrhs_srcthat will be displayed. Return the length of that line for both LHS and RHS.