Enum utf8::DecodeError[][src]

pub enum DecodeError<'a> {
    Invalid {
        valid_prefix: &'a str,
        invalid_sequence: &'a [u8],
        remaining_input: &'a [u8],
    },
    Incomplete {
        valid_prefix: &'a str,
        incomplete_suffix: Incomplete,
    },
}

Variants

In lossy decoding insert valid_prefix, then "\u{FFFD}", then call decode() again with remaining_input.

Fields of Invalid

Call the incomplete_suffix.try_complete method with more input when available. If no more input is available, this is an invalid byte sequence.

Fields of Incomplete

Trait Implementations

impl<'a> Debug for DecodeError<'a>
[src]

Formats the value using the given formatter. Read more

impl<'a> Copy for DecodeError<'a>
[src]

impl<'a> Clone for DecodeError<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<'a> Send for DecodeError<'a>

impl<'a> Sync for DecodeError<'a>