pub fn bounded_display_lines(
lines: &[DiffDisplayLine],
max_rows: usize,
) -> Vec<DiffDisplayLine>Expand description
Returns a bounded head/tail excerpt of semantic display lines.
ยงContract
- Ensures: result length is
<= max_rows;max_rows == 0yields empty. - Ensures: when omitting, exactly one
Metadatamarker (... N lines omitted ...) separates retained head and tail, and retained entries keep their source numbers and intraline ranges. - Termination: no loops over unbounded state (two bounded copies).