Enum secp256kfun::hex::HexError
source · pub enum HexError {
InvalidHex,
InvalidLength,
InvalidEncoding,
}
Expand description
Error representing a failed conversion from hex into the bytes for the target type.
Variants§
InvalidHex
The string was not a valid hex string.
InvalidLength
The string was not the right length for the target type.
InvalidEncoding
The bytes did not encode a valid value for the target type.
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)>
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 HexError
impl PartialEq for HexError
impl StructuralPartialEq for HexError
Auto Trait Implementations§
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