Expand description
Errors returned by various conversion methods in this crate.
Structs§
- Empty
StrError - Cannot create an
Utf8CharorUtf16Charfrom the first codepoint of a str, because there are none. - Invalid
Utf16 First Unit - Cannot tell whether an
u16needs an extra unit, because it’s a trailing surrogate itself.
Enums§
- From
StrError - Reasons why
Utf8Char::from_str()orUtf16Char::from_str()failed. - Invalid
Codepoint - Reasons why an
u32is not a valid UTF codepoint. - Invalid
Utf8 - Reasons why a byte sequence is not valid UTF-8, excluding invalid codepoint. In sinking precedence.
- Invalid
Utf8 Array - Reasons why a byte array is not valid UTF-8, in sinking precedence.
- Invalid
Utf8 First Byte - Reasons why a byte is not the start of a UTF-8 codepoint.
- Invalid
Utf8 Slice - Reasons why a byte slice is not valid UTF-8, in sinking precedence.
- Invalid
Utf16 Array - Reasons why a
[u16; 2]doesn’t form a valid UTF-16 codepoint. - Invalid
Utf16 Slice - Reasons why a slice of
u16s doesn’t start with valid UTF-16. - Invalid
Utf16 Tuple - Reasons why one or two
u16s are not valid UTF-16, in sinking precedence. - Utf16
Pair Error - Types of invalid sequences encountered by
Utf16CharParser.