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

Sequences cannot be longer than 4 bytes. Is given for values >= 240.

This byte belongs to a previous seqence. Is given for values between 128 and 192 (exclusive).

Trait Implementations

impl Clone for InvalidUtf8FirstByte
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for InvalidUtf8FirstByte
[src]

impl Debug for InvalidUtf8FirstByte
[src]

Formats the value using the given formatter.

impl PartialEq for InvalidUtf8FirstByte
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for InvalidUtf8FirstByte
[src]

impl Error for InvalidUtf8FirstByte
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl Display for InvalidUtf8FirstByte
[src]

Formats the value using the given formatter. Read more