Enum nostr_sdk::bitcoin::string::FromHexError
pub enum FromHexError<E> {
ParseHex(E),
MissingPrefix(String),
}
Expand description
Hex parsing error
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§
§impl<E> Clone for FromHexError<E>where
E: Clone,
impl<E> Clone for FromHexError<E>where E: Clone,
§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 more§impl<E> Debug for FromHexError<E>where
E: Debug,
impl<E> Debug for FromHexError<E>where E: Debug,
§impl<E> Display for FromHexError<E>where
E: Display,
impl<E> Display for FromHexError<E>where E: Display,
§impl<E> Error for FromHexError<E>where
E: Error + 'static,
impl<E> Error for FromHexError<E>where E: Error + 'static,
§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()
§impl<E> From<E> for FromHexError<E>
impl<E> From<E> for FromHexError<E>
§fn from(e: E) -> FromHexError<E>
fn from(e: E) -> FromHexError<E>
Converts to this type from the input type.
§impl<E> PartialEq<FromHexError<E>> for FromHexError<E>where
E: PartialEq<E>,
impl<E> PartialEq<FromHexError<E>> for FromHexError<E>where E: PartialEq<E>,
§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 for FromHexError<E>where E: Eq,
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.