Expand description
This module defines the Span struct, which represents a span of text in a source file.
It also provides utilities for working with spans.
Structs§
- Span
- A
Spanrepresents a contiguous region in a source file, defined by its start and end byte indices.
Functions§
- location_
to_ line_ col - Converts a byte index in the source string to a (line, column) tuple.