Enum FromHexError
pub enum FromHexError
The error type for decoding a hex string into Vec<u8> or [u8; N].
Variants
-
InvalidHexCharacter { c: char, index: usize } An invalid character was found. Valid ones are:
0...9,a...forA...F.-
OddLength A hex string's length needs to be even, as two digits correspond to one byte.
-
InvalidStringLength If the hex string is decoded into a fixed sized container, such as an array, the hex string's length * 2 has to match the container's length.
Trait Implementations
impl Clone for FromHexError
fn clone(&self) -> Self
impl Copy for FromHexError
impl Debug for FromHexError
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for FromHexError
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Error for FromHexError
impl PartialEq for FromHexError
fn eq(&self, other: &Self) -> bool