pub enum DecodeHexError {
MissingPrefix,
OddLength,
InvalidLength,
InvalidHexCharacter {
c: char,
index: usize,
},
}
Expand description
An error that can occur when decoding a hexadecimal string
Variants§
Trait Implementations§
Source§impl Debug for DecodeHexError
impl Debug for DecodeHexError
Source§impl Display for DecodeHexError
impl Display for DecodeHexError
Source§impl Error for DecodeHexError
impl Error for DecodeHexError
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 From<Error> for DecodeHexError
impl From<Error> for DecodeHexError
Source§impl From<FromHexError> for DecodeHexError
Converts an hex::FromHexError
into a DecodeHexError
impl From<FromHexError> for DecodeHexError
Converts an hex::FromHexError
into a DecodeHexError
Source§fn from(err: FromHexError) -> Self
fn from(err: FromHexError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DecodeHexError
impl PartialEq for DecodeHexError
impl StructuralPartialEq for DecodeHexError
Auto Trait Implementations§
impl Freeze for DecodeHexError
impl RefUnwindSafe for DecodeHexError
impl Send for DecodeHexError
impl Sync for DecodeHexError
impl Unpin for DecodeHexError
impl UnwindSafe for DecodeHexError
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