Expand description
Types for UTF-8 code unit sequences and their parts.
Macrosยง
- byte_
impls ๐ - byte_
methods ๐ - lead_
impls ๐ - non_
ascii_ ๐impls - sequence_
impls ๐ - sequence_
methods ๐ - to_
lead_ ๐for_ multi_ byte - to_
non_ ๐ascii
Structsยง
- Four
Byte Sequence - Four-byte UTF-8 sequence
- Prepared
Three Bytes - Wrapper for the first three bytes and a precomputed value.
- Prepared
TwoBytes - Wrapper for the first two bytes and a precomputed value.
- Three
Byte Sequence - Three-byte UTF-8 sequence
- TwoByte
Sequence - Two-byte UTF-8 sequence
- Utf8
Byte Error - A type for signaling UTF-8 errors.
- Utf8
Data ๐
Enumsยง
- Ascii
- A byte in the ASCII range (single-byte UTF-8 sequence).
- Lead
ForFour Byte - A lead byte for a four-byte UTF-8 sequence (0xF0 to 0xF4, inclusive)
- Lead
ForMulti Byte - A lead byte for a multibyte sequence (two-byte, three-byte, or four-byte).
- Lead
ForThree Byte - A lead byte for a three-byte UTF-8 sequence (0xE0 to 0xEF, inclusive)
- Lead
ForTwo Byte - A lead byte for a two-byte UTF-8 sequence (0xC2 to 0xDF, inclusive)
- NonAscii
- A byte in the non-ASCII range.
- Unconstrained
Continuation - An unconstrained UTF-8 continuation byte (0x80 to 0xBF, inclusive)
Staticsยง
- UTF8_
DATA ๐ - The first 256 entries are for looking up
second. The rest are for looking upfirston the assumption thatfirstis not ASCII.
Traitsยง
- Seal ๐
- For making sure that reviewing this file is sufficient for
reviewing the implementations of
Utf8ByteSequence. - Utf8
Byte Sequence - Marker trait for all four UTF-8 byte sequences