Enum bitcoin::string::FromHexError
source · #[non_exhaustive]pub enum FromHexError<E> {
ParseHex(E),
MissingPrefix(String),
}
Expand description
Hex parsing error
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ParseHex(E)
The input was not a valid hex string, contains the error that occurred while parsing.
MissingPrefix(String)
The input is missing 0x
prefix, contains the invalid input.
Trait Implementations§
source§impl<E: Clone> Clone for FromHexError<E>
impl<E: Clone> Clone for FromHexError<E>
source§fn clone(&self) -> FromHexError<E>
fn clone(&self) -> FromHexError<E>
Returns a copy 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<E: Debug> Debug for FromHexError<E>
impl<E: Debug> Debug for FromHexError<E>
source§impl<E: Display> Display for FromHexError<E>
impl<E: Display> Display for FromHexError<E>
source§impl<E> Error for FromHexError<E>where
E: Error + 'static,
impl<E> Error for FromHexError<E>where E: Error + 'static,
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<E> From<E> for FromHexError<E>
impl<E> From<E> for FromHexError<E>
source§impl<E: PartialEq> PartialEq<FromHexError<E>> for FromHexError<E>
impl<E: PartialEq> PartialEq<FromHexError<E>> for FromHexError<E>
source§fn eq(&self, other: &FromHexError<E>) -> bool
fn eq(&self, other: &FromHexError<E>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<E: Eq> Eq for FromHexError<E>
impl<E> StructuralEq for FromHexError<E>
impl<E> StructuralPartialEq for FromHexError<E>
Auto Trait Implementations§
impl<E> RefUnwindSafe for FromHexError<E>where E: RefUnwindSafe,
impl<E> Send for FromHexError<E>where E: Send,
impl<E> Sync for FromHexError<E>where E: Sync,
impl<E> Unpin for FromHexError<E>where E: Unpin,
impl<E> UnwindSafe for FromHexError<E>where E: UnwindSafe,
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