Enum utf8::DecodeStepStatus [] [src]

pub enum DecodeStepStatus<'a> {
    Ok,
    Error {
        remaining_input_after_error: &'a [u8],
    },
    Incomplete(IncompleteSequence),
}

Variants

Ok

The input is entirely well-formed

Error

There is a decoding error. Each such error should be represented as one U+FFFD replacement character in lossy decoding.

Fields

remaining_input_after_error: &'a [u8]
Incomplete(IncompleteSequence)

The end of the input was reached in the middle of an UTF-8 sequence that is valid so far. More input (up to 3 more bytes) is required to determine if it is well-formed. If at the end of the input, this is a decoding error.

Trait Implementations

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

fn clone(&self) -> DecodeStepStatus<'a>

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<'a> Copy for DecodeStepStatus<'a>
[src]

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

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.