Skip to main content

Module utf8

Module utf8 

Source
Expand description

Types for UTF-8 code unit sequences and their parts.

Structs§

FourByteSequence
Four-byte UTF-8 sequence
PreparedThreeBytes
Wrapper for the first three bytes and a precomputed value.
PreparedTwoBytes
Wrapper for the first two bytes and a precomputed value.
ThreeByteSequence
Three-byte UTF-8 sequence
TwoByteSequence
Two-byte UTF-8 sequence
Utf8ByteError
A type for signaling UTF-8 errors.

Enums§

Ascii
A byte in the ASCII range (single-byte UTF-8 sequence).
LeadForFourByte
A lead byte for a four-byte UTF-8 sequence (0xF0 to 0xF4, inclusive)
LeadForMultiByte
A lead byte for a multibyte sequence (two-byte, three-byte, or four-byte).
LeadForThreeByte
A lead byte for a three-byte UTF-8 sequence (0xE0 to 0xEF, inclusive)
LeadForTwoByte
A lead byte for a two-byte UTF-8 sequence (0xC2 to 0xDF, inclusive)
NonAscii
A byte in the non-ASCII range.
UnconstrainedContinuation
An unconstrained UTF-8 continuation byte (0x80 to 0xBF, inclusive)

Traits§

Utf8ByteSequence
Marker trait for all four UTF-8 byte sequences