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
Invalid
In lossy decoding insert valid_prefix
, then "\u{FFFD}"
,
then call decode()
again with remaining_input
.
Incomplete
Call the incomplete_suffix.try_complete
method with more input when available.
If no more input is available, this is an invalid byte sequence.
Trait Implementations
impl<'a> Debug for DecodeError<'a>
[src]
impl<'a> Copy for DecodeError<'a>
[src]
impl<'a> Clone for DecodeError<'a>
[src]
fn clone(&self) -> DecodeError<'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