Module encode_unicode::error [] [src]

Errors returned by various conversion methods in this crate.

Structs

InvalidUtf16FirstUnit

Cannot tell wether an u16 needs an extra unit, because it's a trailing surrogate itself.

Enums

FromStrError

Reasons why Utf8Char::from_str() failed.

InvalidCodepoint

Reasons why an u32 is not a valid UTF codepoint.

InvalidUtf16Slice

Reasons why a slice of u16s doesn't start with valid UTF-16.

InvalidUtf16Tuple

Reasons why one or two u16s are not valid UTF-16, in sinking precedence.

InvalidUtf8

Reasons why a byte sequence is not valid UTF-8, excluding invalid codepoint. In sinking precedence.

InvalidUtf8Array

Reasons why a byte array is not valid UTF-8, in sinking precedence.

InvalidUtf8FirstByte

Reasons why a byte is not the start of a UTF-8 codepoint.

InvalidUtf8Slice

Reasons why a byte slice is not valid UTF-8, in sinking precedence.