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...f or A...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

impl StructuralPartialEq for FromHexError

Auto Trait Implementations

impl Freeze for FromHexError

impl RefUnwindSafe for FromHexError

impl Send for FromHexError

impl Sync for FromHexError

impl Unpin for FromHexError

impl UnsafeUnpin for FromHexError

impl UnwindSafe for FromHexError

Blanket Implementations

impl<T> Any for FromHexError where T: 'static + ?Sized,

impl<T> Borrow<T> for FromHexError where T: ?Sized,

impl<T> BorrowMut<T> for FromHexError where T: ?Sized,

impl<T> CloneToUninit for FromHexError where T: Clone,

impl<T> From<T> for FromHexError

impl<T> ToOwned for FromHexError where T: Clone,

impl<T> ToString for FromHexError where T: Display + ?Sized,

impl<T, U> Into<U> for FromHexError where U: From<T>,

impl<T, U> TryFrom<U> for FromHexError where U: Into<T>,

impl<T, U> TryInto<U> for FromHexError where U: TryFrom<T>,