pub enum ParseCompressedPublicKeyError {
Secp256k1(Error),
Hex(HexToArrayError),
}
Expand description
Error returned when parsing a CompressedPublicKey
from a string.
Variants§
Trait Implementations§
§impl Clone for ParseCompressedPublicKeyError
impl Clone for ParseCompressedPublicKeyError
§fn clone(&self) -> ParseCompressedPublicKeyError
fn clone(&self) -> ParseCompressedPublicKeyError
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 ParseCompressedPublicKeyError
impl Debug for ParseCompressedPublicKeyError
§impl Display for ParseCompressedPublicKeyError
impl Display for ParseCompressedPublicKeyError
§impl Error for ParseCompressedPublicKeyError
impl Error for ParseCompressedPublicKeyError
§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<Error> for ParseCompressedPublicKeyError
impl From<Error> for ParseCompressedPublicKeyError
§fn from(e: Error) -> ParseCompressedPublicKeyError
fn from(e: Error) -> ParseCompressedPublicKeyError
Converts to this type from the input type.
§impl From<HexToArrayError> for ParseCompressedPublicKeyError
impl From<HexToArrayError> for ParseCompressedPublicKeyError
§fn from(e: HexToArrayError) -> ParseCompressedPublicKeyError
fn from(e: HexToArrayError) -> ParseCompressedPublicKeyError
Converts to this type from the input type.
§impl From<Infallible> for ParseCompressedPublicKeyError
impl From<Infallible> for ParseCompressedPublicKeyError
§fn from(never: Infallible) -> ParseCompressedPublicKeyError
fn from(never: Infallible) -> ParseCompressedPublicKeyError
Converts to this type from the input type.
§impl PartialEq for ParseCompressedPublicKeyError
impl PartialEq for ParseCompressedPublicKeyError
§fn eq(&self, other: &ParseCompressedPublicKeyError) -> bool
fn eq(&self, other: &ParseCompressedPublicKeyError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ParseCompressedPublicKeyError
impl StructuralPartialEq for ParseCompressedPublicKeyError
Auto Trait Implementations§
impl Freeze for ParseCompressedPublicKeyError
impl RefUnwindSafe for ParseCompressedPublicKeyError
impl Send for ParseCompressedPublicKeyError
impl Sync for ParseCompressedPublicKeyError
impl Unpin for ParseCompressedPublicKeyError
impl UnwindSafe for ParseCompressedPublicKeyError
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