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
Available on crate feature std
only.
impl Error for ParseCompressedPublicKeyError
Available on crate feature
std
only.Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 for ParseCompressedPublicKeyError
impl PartialEq for ParseCompressedPublicKeyError
Source§fn eq(&self, other: &ParseCompressedPublicKeyError) -> bool
fn eq(&self, other: &ParseCompressedPublicKeyError) -> bool
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