pub enum HexError {
InvalidHex,
InvalidLength {
expected: usize,
got: usize,
},
}Expand description
Re-export of HexError for convenience when using hex decoding.
Error type for Hex decoding operations.
Variants§
Trait Implementations§
Source§impl Error for HexError
impl Error for HexError
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()
impl Eq for HexError
impl StructuralPartialEq for HexError
Auto Trait Implementations§
impl Freeze for HexError
impl RefUnwindSafe for HexError
impl Send for HexError
impl Sync for HexError
impl Unpin for HexError
impl UnwindSafe for HexError
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