Enum hex_conservative::parse::HexToArrayError
source · pub enum HexToArrayError {
Conversion(HexToBytesError),
InvalidLength(usize, usize),
}
Expand description
Hex decoding error.
Variants§
Conversion(HexToBytesError)
Conversion error while parsing hex string.
InvalidLength(usize, usize)
Tried to parse fixed-length hash from a string with the wrong length (got, want).
Trait Implementations§
source§impl Clone for HexToArrayError
impl Clone for HexToArrayError
source§fn clone(&self) -> HexToArrayError
fn clone(&self) -> HexToArrayError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for HexToArrayError
impl Debug for HexToArrayError
source§impl Display for HexToArrayError
impl Display for HexToArrayError
source§impl From<HexToBytesError> for HexToArrayError
impl From<HexToBytesError> for HexToArrayError
source§fn from(e: HexToBytesError) -> Self
fn from(e: HexToBytesError) -> Self
Converts to this type from the input type.
source§impl Hash for HexToArrayError
impl Hash for HexToArrayError
source§impl Ord for HexToArrayError
impl Ord for HexToArrayError
source§fn cmp(&self, other: &HexToArrayError) -> Ordering
fn cmp(&self, other: &HexToArrayError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for HexToArrayError
impl PartialEq for HexToArrayError
source§fn eq(&self, other: &HexToArrayError) -> bool
fn eq(&self, other: &HexToArrayError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for HexToArrayError
impl PartialOrd for HexToArrayError
source§fn partial_cmp(&self, other: &HexToArrayError) -> Option<Ordering>
fn partial_cmp(&self, other: &HexToArrayError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for HexToArrayError
impl Eq for HexToArrayError
impl StructuralPartialEq for HexToArrayError
Auto Trait Implementations§
impl Freeze for HexToArrayError
impl RefUnwindSafe for HexToArrayError
impl Send for HexToArrayError
impl Sync for HexToArrayError
impl Unpin for HexToArrayError
impl UnwindSafe for HexToArrayError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)