Expand description
Byte-offset spans — minimal and cheap. Line/column are computed on demand.
Structs§
- Position
- 1-indexed line/column pair — what humans see in editors.
- Span
- A half-open byte range
[start, end)into some source string.
Functions§
- line_
column - Compute (line, column) for a byte offset. Line and column are 1-indexed. O(offset); fine for diagnostics, not for hot paths.