TextPosition

TextPosition :: # (opaque)

One Unicode-scalar boundary in a logical text source.

Both offsets are absolute from the beginning of that source. byte_offset counts UTF-8 bytes and scalar_offset counts decoded Unicode scalars.