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
TooLongSeqence
Sequences cannot be longer than 4 bytes. Is given for values >= 240.
ContinuationByte
This byte belongs to a previous sequence. Is given for values between 128 and 192 (exclusive).
Trait Implementations
impl Clone for InvalidUtf8FirstByte
[src]
impl Clone for InvalidUtf8FirstByte
fn clone(&self) -> InvalidUtf8FirstByte
[src]
fn clone(&self) -> InvalidUtf8FirstByte
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for InvalidUtf8FirstByte
[src]
impl Copy for InvalidUtf8FirstByte
impl Debug for InvalidUtf8FirstByte
[src]
impl Debug for InvalidUtf8FirstByte
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for InvalidUtf8FirstByte
[src]
impl PartialEq for InvalidUtf8FirstByte
fn eq(&self, other: &InvalidUtf8FirstByte) -> bool
[src]
fn eq(&self, other: &InvalidUtf8FirstByte) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for InvalidUtf8FirstByte
[src]
impl Eq for InvalidUtf8FirstByte
impl Error for InvalidUtf8FirstByte
[src]
impl Error for InvalidUtf8FirstByte
fn description(&self) -> &'static str
[src]
fn description(&self) -> &'static str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
fn cause(&self) -> Option<&Error>
1.0.0
[src]The lower-level cause of this error, if any. Read more
impl Display for InvalidUtf8FirstByte
[src]
impl Display for InvalidUtf8FirstByte
fn fmt(&self, fmtr: &mut Formatter) -> Result
[src]
fn fmt(&self, fmtr: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<InvalidUtf8FirstByte> for InvalidUtf8
[src]
impl From<InvalidUtf8FirstByte> for InvalidUtf8
fn from(error: InvalidUtf8FirstByte) -> InvalidUtf8
[src]
fn from(error: InvalidUtf8FirstByte) -> InvalidUtf8
Performs the conversion.
Auto Trait Implementations
impl Send for InvalidUtf8FirstByte
impl Send for InvalidUtf8FirstByte
impl Sync for InvalidUtf8FirstByte
impl Sync for InvalidUtf8FirstByte