Enum encode_unicode::error::InvalidUtf8FirstByte
[−]
[src]
pub enum InvalidUtf8FirstByte {
TooLongSeqence,
ContinuationByte,
}Reasons why a byte is not the start of a UTF-8 codepoint.
Variants
TooLongSeqenceSequences cannot be longer than 4 bytes. Is given for values >= 240.
ContinuationByteThis byte belongs to a previous seqence. Is given for values between 128 and 192 (exclusive).
Trait Implementations
impl Clone for InvalidUtf8FirstByte[src]
fn clone(&self) -> InvalidUtf8FirstByte
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 InvalidUtf8FirstByte[src]
impl Debug for InvalidUtf8FirstByte[src]
impl PartialEq for InvalidUtf8FirstByte[src]
fn eq(&self, __arg_0: &InvalidUtf8FirstByte) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl Eq for InvalidUtf8FirstByte[src]
impl Error for InvalidUtf8FirstByte[src]
fn description(&self) -> &'static str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>1.0.0
The lower-level cause of this error, if any. Read more