Enum dcl_crypto::account::DecodeHexError
source · 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)>
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
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
source§fn eq(&self, other: &DecodeHexError) -> bool
fn eq(&self, other: &DecodeHexError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DecodeHexError
Auto Trait Implementations§
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