encode_unicode

Module error

Source
Expand description

Errors returned by various conversion methods in this crate.

Structs§

  • Cannot create an Utf8Char or Utf16Char from the first codepoint of a str, because there are none.
  • Cannot tell whether an u16 needs an extra unit, because it’s a trailing surrogate itself.

Enums§

  • Reasons why Utf8Char::from_str() or Utf16Char::from_str() failed.
  • Reasons why an u32 is not a valid UTF codepoint.
  • Reasons why a byte sequence is not valid UTF-8, excluding invalid codepoint. In sinking precedence.
  • Reasons why a byte array is not valid UTF-8, in sinking precedence.
  • Reasons why a byte is not the start of a UTF-8 codepoint.
  • Reasons why a byte slice is not valid UTF-8, in sinking precedence.
  • Reasons why a slice of u16s doesn’t start with valid UTF-16.
  • Reasons why one or two u16s are not valid UTF-16, in sinking precedence.
  • Types of invalid sequences encountered by Utf16CharParser.