Enum encode_unicode::error::InvalidUtf8  
                   
                       [−]
                   
               [src]
pub enum InvalidUtf8 {
    FirstByte(InvalidUtf8FirstByte),
    NotAContinuationByte(usize),
    OverLong,
}Reasons why a byte sequence is not valid UTF-8, excluding invalid codepoint. In sinking precedence.
Variants
FirstByte(InvalidUtf8FirstByte)Something is wrong with the first byte.
NotAContinuationByte(usize)Thee byte at index 1...3 should be a continuation byte, but dosesn't fit the pattern 0b10xx_xxxx.
OverLongThere are too many leading zeros: it could be a byte shorter.
Trait Implementations
impl Clone for InvalidUtf8[src]
fn clone(&self) -> InvalidUtf8
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 InvalidUtf8[src]
impl Debug for InvalidUtf8[src]
impl PartialEq for InvalidUtf8[src]
fn eq(&self, __arg_0: &InvalidUtf8) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &InvalidUtf8) -> bool
This method tests for !=.
impl Eq for InvalidUtf8[src]
impl From<InvalidUtf8FirstByte> for InvalidUtf8[src]
fn from(error: InvalidUtf8FirstByte) -> InvalidUtf8
Performs the conversion.
impl Error for InvalidUtf8[src]
fn description(&self) -> &'static str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
Returns Some if the error is a InvalidUtf8FirstByte.