A length or offset counted in 8-bit code units (bytes) in an UTF-8 string.
This type is used to more reliable work with lengths or offsets in different encodings.
A length or offset counted in 16-bit code units in an UTF-16 string.
This type is used to more reliable work with lengths or offsets in different encodings.
A length or offset counted in 32-bit code units in UTF-32.
This is the same as counting Rust chars, Unicode scalar values, or Unicode code points.
This type is used to more reliable work with lengths or offsets in different encodings.