Functions§
- line_
range - 1-indexed line range for the byte slice
[start, end)insource.end_lineis the line of the LAST byte (end - 1) — a slice that ends just past a\ndoes not yet “touch” the next line. Empty / out-of-bounds ranges collapse to a single line at the start position. Convention matches what every IDE shows the user.