Expand description
Extension trait sugar for TextRange.
cyrs uses byte offsets for every span (spec §4); line/column conversion
is owned by LineIndex and only happens at LSP and
diagnostic-render boundaries. The helpers in this module deduplicate the
handful of one-line conversions that consumer crates were rolling
themselves (TextRange → Range<usize>, TextRange → Range<u32>,
and the half-open intersection predicate).
Traits§
- Text
Range Ext - Convenience conversions on top of
TextRange.