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.
Show fields
Call the incomplete_suffix.try_complete method with more input when available.
If no more input is available, this is an invalid byte sequence.
Show fields
Fields of Incomplete
valid_prefix: &'a strincomplete_suffix: IncompleteTrait Implementations
impl<'a> Clone for DecodeError<'a>[src]
impl<'a> Clone for DecodeError<'a>[src]fn clone(&self) -> DecodeError<'a>[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<'a> Error for DecodeError<'a>[src]
impl<'a> Error for DecodeError<'a>[src]