pub enum ParseCompressedPublicKeyError {
Secp256k1(Error),
Hex(HexToArrayError),
}
Expand description
Error returned when parsing a CompressedPublicKey
from a string.
Variants§
Trait Implementations§
source§impl Clone for ParseCompressedPublicKeyError
impl Clone for ParseCompressedPublicKeyError
source§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 moresource§impl Error for ParseCompressedPublicKeyError
impl Error for ParseCompressedPublicKeyError
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 From<Error> for ParseCompressedPublicKeyError
impl From<Error> for ParseCompressedPublicKeyError
source§impl From<HexToArrayError> for ParseCompressedPublicKeyError
impl From<HexToArrayError> for ParseCompressedPublicKeyError
source§fn from(e: HexToArrayError) -> Self
fn from(e: HexToArrayError) -> Self
Converts to this type from the input type.
source§impl From<Infallible> for ParseCompressedPublicKeyError
impl From<Infallible> for ParseCompressedPublicKeyError
source§fn from(never: Infallible) -> Self
fn from(never: Infallible) -> Self
Converts to this type from the input type.
source§impl PartialEq<ParseCompressedPublicKeyError> for ParseCompressedPublicKeyError
impl PartialEq<ParseCompressedPublicKeyError> for ParseCompressedPublicKeyError
source§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 StructuralEq for ParseCompressedPublicKeyError
impl StructuralPartialEq for ParseCompressedPublicKeyError
Auto Trait Implementations§
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