Skip to main content

Module text

Module text 

Source
Expand description

Source location types (offset-only).

This module provides TextSize (a byte offset) and TextRange (a half-open byte range) for tracking source positions. Inspired by ruff / rust-analyzer’s text-size crate.

Structs§

TextRange
A range in the source text [start, end), represented as byte offsets.
TextSize
A byte offset in the source text.