Skip to main content

diff_gutter_width

Function diff_gutter_width 

Source
pub const fn diff_gutter_width(line_number_width: usize) -> usize
Expand description

Width consumed by a unified diff gutter after the line-number field.

The rendered shape is +123 │ : one marker plus the three-cell separator around │. The line-number field is supplied by the caller because it is derived from the visible diff excerpt.