Enum base16::DecodeError
[−]
[src]
pub enum DecodeError { InvalidByte { index: usize, byte: u8, }, InvalidLength { length: usize, }, }
Represents a problem with the data we want to decode.
Variants
InvalidByte
An invalid byte was found in the input (bytes must be [0-9a-fA-F]
)
Fields of InvalidByte
index: usize | The index at which the problematic byte was found. |
byte: u8 | The byte that we cannot decode. |
InvalidLength
The length of the input not a multiple of two
Fields of InvalidLength
length: usize | The input length. |
Trait Implementations
impl Debug for DecodeError
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for DecodeError
[src]
fn eq(&self, __arg_0: &DecodeError) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DecodeError) -> bool
[src]
This method tests for !=
.
impl Eq for DecodeError
[src]
impl Clone for DecodeError
[src]
fn clone(&self) -> DecodeError
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Display for DecodeError
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more