Enum base16::DecodeError
source ·
[−]Expand description
Represents a problem with the data we want to decode.
This implements std::error::Error
and Display
if the std
feature is enabled, but only Display
if it is not.
Variants
InvalidByte
Fields
index: usize
The index at which the problematic byte was found.
byte: u8
The byte that we cannot decode.
An invalid byte was found in the input (bytes must be [0-9a-fA-F]
)
InvalidLength
Fields
length: usize
The input length.
The length of the input not a multiple of two
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for DecodeError
impl Send for DecodeError
impl Sync for DecodeError
impl Unpin for DecodeError
impl UnwindSafe for DecodeError
Blanket Implementations
Mutably borrows from an owned value. Read more