StringIndex

struct StringIndex

An opaque grapheme-boundary position tied to one string snapshot.

Besides the byte offset, an index records the backing allocation and view bounds. APIs reject indices from another string or substring even when the numeric offsets match, preventing accidental cross-snapshot slicing.