Skip to main content

Module text

Module text 

Source

Macrosยง

unicode_length_type ๐Ÿ”’

Structsยง

AssumeUnder4GB
A marker to make callers acknowledge that a method computes 32-bit offsets or lengths, and trying to compute past u32::MAX code units may result in integer overflow.
RangeAny
Equivalent to either Range, RangeTo, RangeFrom, or RangeFull
Utf8CodeUnits
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.
Utf16CodeUnits
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.
Utf32CodeUnits
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.
Utf32CodeUnitsOrNodeOffset
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.

Enumsยง

RangeAnyInner ๐Ÿ”’
UnicodeBlock

Traitsยง

UnicodeBlockMethod

Functionsยง

infallible_u32_to_usize ๐Ÿ”’
is_bidi_control
is_cjk
len_utf8_for_utf8_byte ๐Ÿ”’
len_utf16_for_utf8_byte ๐Ÿ”’
len_utf16_to_len_utf32_for_utf8_byte ๐Ÿ”’
unicode_plane