Enum bdk_chain::bitcoin::key::ParsePublicKeyError
pub enum ParsePublicKeyError {
Encoding(FromSliceError),
InvalidChar(u8),
InvalidHexLength(usize),
}
Expand description
Error returned while constructing public key from string.
Variants§
Encoding(FromSliceError)
Error originated while parsing string.
InvalidChar(u8)
Hex decoding error.
InvalidHexLength(usize)
PublicKey
hex should be 66 or 130 digits long.
Trait Implementations§
§impl Clone for ParsePublicKeyError
impl Clone for ParsePublicKeyError
§fn clone(&self) -> ParsePublicKeyError
fn clone(&self) -> ParsePublicKeyError
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 Debug for ParsePublicKeyError
impl Debug for ParsePublicKeyError
§impl Display for ParsePublicKeyError
impl Display for ParsePublicKeyError
§impl Error for ParsePublicKeyError
impl Error for ParsePublicKeyError
§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 From<FromSliceError> for ParsePublicKeyError
impl From<FromSliceError> for ParsePublicKeyError
§fn from(e: FromSliceError) -> ParsePublicKeyError
fn from(e: FromSliceError) -> ParsePublicKeyError
Converts to this type from the input type.
§impl From<Infallible> for ParsePublicKeyError
impl From<Infallible> for ParsePublicKeyError
§fn from(never: Infallible) -> ParsePublicKeyError
fn from(never: Infallible) -> ParsePublicKeyError
Converts to this type from the input type.
§impl PartialEq for ParsePublicKeyError
impl PartialEq for ParsePublicKeyError
§fn eq(&self, other: &ParsePublicKeyError) -> bool
fn eq(&self, other: &ParsePublicKeyError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ParsePublicKeyError
impl StructuralPartialEq for ParsePublicKeyError
Auto Trait Implementations§
impl Freeze for ParsePublicKeyError
impl RefUnwindSafe for ParsePublicKeyError
impl Send for ParsePublicKeyError
impl Sync for ParsePublicKeyError
impl Unpin for ParsePublicKeyError
impl UnwindSafe for ParsePublicKeyError
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more