Enum encode_unicode::error::InvalidUtf8Array
[−]
[src]
pub enum InvalidUtf8Array {
Utf8(InvalidUtf8),
Codepoint(InvalidCodepoint),
}Reasons why a byte array is not valid UTF-8, in sinking precedence.
Variants
Utf8(InvalidUtf8)Not a valid UTF-8 sequence.
Codepoint(InvalidCodepoint)Not a valid unicode codepoint.
Trait Implementations
impl Clone for InvalidUtf8Array[src]
fn clone(&self) -> InvalidUtf8Array
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Copy for InvalidUtf8Array[src]
impl Debug for InvalidUtf8Array[src]
impl PartialEq for InvalidUtf8Array[src]
fn eq(&self, __arg_0: &InvalidUtf8Array) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &InvalidUtf8Array) -> bool
This method tests for !=.
impl Eq for InvalidUtf8Array[src]
impl From<InvalidUtf8> for InvalidUtf8Array[src]
fn from(error: InvalidUtf8) -> InvalidUtf8Array
Performs the conversion.
impl From<InvalidCodepoint> for InvalidUtf8Array[src]
fn from(error: InvalidCodepoint) -> InvalidUtf8Array
Performs the conversion.
impl Error for InvalidUtf8Array[src]
fn description(&self) -> &'static str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
Always returns Some.