Expand description
Errors returned by various conversion methods in this crate.
Structs§
- Empty
StrError - Error returned by
Utf8Char::from_str_start()andUtf16Char::from_str_start()when called with an empty string. - NonAscii
Error - Error returned by
Utf8Char::from_ascii()for bytes that are not ASCII characters. - NonBmp
Error - Error returned by
Utf16Char::from_bmp()for units that are not a standalone codepoint. - Utf8
Error - Error returned when an invalid UTF-8 sequence is encountered.
- Utf16
First Unit Error - Error returned by
U16UtfExt::utf16_needs_extra_unit()when called on anu16that’s a trailing surrogate.
Enums§
- Codepoint
Error - Error returned when an
u32is not a valid unicode codepoint. - From
StrError - Error returned when
Utf8Char::from_str()orUtf16Char::from_str()fails. - Utf8
Error Kind - The types of errors that can occur when decoding a UTF-8 codepoint.
- Utf16
Array Error - Error returned when an
[u16; 2]doesn’t form a valid UTF-16 codepoint. - Utf16
Pair Error - Error returned by
Utf16CharDecoderwhen it encounters an invalid sequence. - Utf16
Slice Error - Error returned when a slice of
u16s doesn’t start with valid UTF-16. - Utf16
Tuple Error - Error returned when one or two
u16s are not valid UTF-16.