Module span

Module span 

Source
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 Span represents 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.