Enum hex_conservative::parse::HexToBytesError
source · pub enum HexToBytesError {
InvalidChar(u8),
OddLengthString(usize),
}
Expand description
Hex decoding error.
Variants§
InvalidChar(u8)
Non-hexadecimal character.
OddLengthString(usize)
Purported hex string had odd length.
Trait Implementations§
source§impl Clone for HexToBytesError
impl Clone for HexToBytesError
source§fn clone(&self) -> HexToBytesError
fn clone(&self) -> HexToBytesError
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 HexToBytesError
impl Debug for HexToBytesError
source§impl Display for HexToBytesError
impl Display for HexToBytesError
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 HexToBytesError
impl Hash for HexToBytesError
source§impl Ord for HexToBytesError
impl Ord for HexToBytesError
source§fn cmp(&self, other: &HexToBytesError) -> Ordering
fn cmp(&self, other: &HexToBytesError) -> 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 HexToBytesError
impl PartialEq for HexToBytesError
source§fn eq(&self, other: &HexToBytesError) -> bool
fn eq(&self, other: &HexToBytesError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for HexToBytesError
impl PartialOrd for HexToBytesError
source§fn partial_cmp(&self, other: &HexToBytesError) -> Option<Ordering>
fn partial_cmp(&self, other: &HexToBytesError) -> 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 HexToBytesError
impl Eq for HexToBytesError
impl StructuralPartialEq for HexToBytesError
Auto Trait Implementations§
impl Freeze for HexToBytesError
impl RefUnwindSafe for HexToBytesError
impl Send for HexToBytesError
impl Sync for HexToBytesError
impl Unpin for HexToBytesError
impl UnwindSafe for HexToBytesError
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
)