pub enum HexStringError {
InvalidLength {
encountered: usize,
},
InvalidByte {
a: u8,
b: u8,
index: usize,
},
}Expand description
An error that may occur when parsing hex strings
Variants§
InvalidLength
The input didn’t have required length
InvalidByte
The input contained invalid character
Trait Implementations§
Source§impl Clone for HexStringError
impl Clone for HexStringError
Source§fn clone(&self) -> HexStringError
fn clone(&self) -> HexStringError
Returns a duplicate 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 HexStringError
impl Debug for HexStringError
Source§impl Display for HexStringError
impl Display for HexStringError
Source§impl Error for HexStringError
impl Error for HexStringError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for HexStringError
impl PartialEq for HexStringError
impl Eq for HexStringError
impl StructuralPartialEq for HexStringError
Auto Trait Implementations§
impl Freeze for HexStringError
impl RefUnwindSafe for HexStringError
impl Send for HexStringError
impl Sync for HexStringError
impl Unpin for HexStringError
impl UnwindSafe for HexStringError
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