Expand description
Types for UTF-8 code unit sequences and their parts.
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.
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)
Traits§
- Utf8
Byte Sequence - Marker trait for all four UTF-8 byte sequences