Error type for Unicode conversion
Variants
-
BufferTooSmall
The buffer is too small to hold the encoded value
-
InvalidCodepoint
The code point is not a valid Unicode scalar value
-
InvalidUTF8
The UTF-8 sequence is invalid
-
InvalidUTF16
The UTF-16 sequence is invalid
-
SurrogateMismatch
UTF-16 surrogate not followed (or preceded) by a surrogate of the opposite type
Methods
impl Error { ... }
Mixins
impl Error { ... }
-
-
Returns
false
if arguments are equal,true
otherwise