Macrosยง
- unicode_
length_ ๐type
Structsยง
- Assume
Under4GB - A marker to make callers acknowledge that a method computes 32-bit offsets or lengths,
and trying to compute past
u32::MAXcode units may result in integer overflow. - Range
Any - Equivalent to either
Range,RangeTo,RangeFrom, orRangeFull - Utf8
Code Units - 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.
- Utf16
Code Units - 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.
- Utf32
Code Units - 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. - Utf32
Code Units OrNode Offset - A length or offset counted in 32-bit code units in UTF-32 or a node offset in a container node counted in previous siblings.