pub enum HexDecodeError {
OddLength {
char_count: usize,
},
InvalidDigit {
pair_start: usize,
char_count: usize,
},
}Expand description
Why hexadecimal decoding failed (Error::HexDecode, crate::api::Utils::hex_to_bytes).
Variants§
OddLength
After trimming, the string has an odd number of hexadecimal characters.
InvalidDigit
A two-character slice is not a valid hexadecimal byte.
Trait Implementations§
Source§impl Clone for HexDecodeError
impl Clone for HexDecodeError
Source§fn clone(&self) -> HexDecodeError
fn clone(&self) -> HexDecodeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HexDecodeError
impl Debug for HexDecodeError
Source§impl<'de> Deserialize<'de> for HexDecodeError
impl<'de> Deserialize<'de> for HexDecodeError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for HexDecodeError
impl Display for HexDecodeError
Source§impl Hash for HexDecodeError
impl Hash for HexDecodeError
Source§impl PartialEq for HexDecodeError
impl PartialEq for HexDecodeError
Source§fn eq(&self, other: &HexDecodeError) -> bool
fn eq(&self, other: &HexDecodeError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for HexDecodeError
impl Serialize for HexDecodeError
impl Copy for HexDecodeError
impl Eq for HexDecodeError
impl StructuralPartialEq for HexDecodeError
Auto Trait Implementations§
impl Freeze for HexDecodeError
impl RefUnwindSafe for HexDecodeError
impl Send for HexDecodeError
impl Sync for HexDecodeError
impl Unpin for HexDecodeError
impl UnsafeUnpin for HexDecodeError
impl UnwindSafe for HexDecodeError
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