Index[Kind: _IndexKind]¶
Public Functions¶
value¶
The underlying numeric offset.
Returns¶
- USize val
add¶
Add n to this index, producing a new index of the same kind.
Useful for stepping forward in iteration code. The result is NOT
range-checked against any specific Text — callers receiving an
out-of-range index from an op (e.g., grapheme_at) will get
OutOfRange back.
Parameters¶
- n: USize val
Returns¶
- Index[Kind] val
eq¶
Parameters¶
- that: Index[Kind] box
Returns¶
- Bool val
lt¶
Parameters¶
- that: Index[Kind] box
Returns¶
- Bool val
hash¶
Returns¶
- USize val