Struct HexError

struct HexError(_)

The error type for Hash::from_hex.

The .to_string() representation of this error currently distinguishes between bad length errors and bad character errors. This is to help with logging and debugging, but it isn't a stable API detail, and it may change at any time.

Implementations

impl Clone for HexError

fn clone(self: &Self) -> HexError

impl Debug for HexError

fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result

impl Display for HexError

fn fmt(self: &Self, f: &mut fmt::Formatter<'_>) -> fmt::Result

impl Error for HexError

impl Freeze for HexError

impl RefUnwindSafe for HexError

impl Send for HexError

impl Sync for HexError

impl Unpin for HexError

impl UnwindSafe for HexError

impl<T> Any for HexError

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for HexError

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for HexError

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for HexError

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for HexError

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for HexError

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T> ToString for HexError

fn to_string(self: &Self) -> String

impl<T, U> Into for HexError

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for HexError

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for HexError

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>