Expand description
Errors returned by various conversion methods in this crate.
Structs§
- Error returned by
Utf8Char::from_str_start()
andUtf16Char::from_str_start()
when called with an empty string. - Error returned by
Utf8Char::from_ascii()
for bytes that are not ASCII characters. - Error returned by
Utf16Char::from_bmp()
for units that are not a standalone codepoint. - Error returned when an invalid UTF-8 sequence is encountered.
- Error returned by
U16UtfExt::utf16_needs_extra_unit()
when called on anu16
that’s a trailing surrogate.
Enums§
- Error returned when an
u32
is not a valid unicode codepoint. - Error returned when
Utf8Char::from_str()
orUtf16Char::from_str()
fails. - The types of errors that can occur when decoding a UTF-8 codepoint.
- Error returned when an
[u16; 2]
doesn’t form a valid UTF-16 codepoint. - Error returned by
Utf16CharDecoder
when it encounters an invalid sequence. - Error returned when a slice of
u16
s doesn’t start with valid UTF-16. - Error returned when one or two
u16
s are not valid UTF-16.