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
.
Fields of Invalid
valid_prefix: &'a str | |
invalid_sequence: &'a [u8] | |
remaining_input: &'a [u8] |
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.
Fields of Incomplete
valid_prefix: &'a str | |
incomplete_suffix: Incomplete |
Trait Implementations
impl<'a> Debug for DecodeError<'a>
[src]
impl<'a> Debug for DecodeError<'a>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> Copy for DecodeError<'a>
[src]
impl<'a> Copy for DecodeError<'a>
impl<'a> Clone for DecodeError<'a>
[src]
impl<'a> Clone for DecodeError<'a>
fn clone(&self) -> 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[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<'a> Send for DecodeError<'a>
impl<'a> Send for DecodeError<'a>
impl<'a> Sync for DecodeError<'a>
impl<'a> Sync for DecodeError<'a>