Enum derive::InvalidPubkey
source · pub enum InvalidPubkey<const LEN: usize> {
Unspecified,
Specified(Array<u8, LEN>),
}
Variants§
Trait Implementations§
source§impl<const LEN: usize> Clone for InvalidPubkey<LEN>
impl<const LEN: usize> Clone for InvalidPubkey<LEN>
source§fn clone(&self) -> InvalidPubkey<LEN>
fn clone(&self) -> InvalidPubkey<LEN>
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<const LEN: usize> Debug for InvalidPubkey<LEN>
impl<const LEN: usize> Debug for InvalidPubkey<LEN>
source§impl<const LEN: usize> Display for InvalidPubkey<LEN>
impl<const LEN: usize> Display for InvalidPubkey<LEN>
source§impl<const LEN: usize> Error for InvalidPubkey<LEN>
impl<const LEN: usize> Error for InvalidPubkey<LEN>
1.30.0 · 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<const LEN: usize> From<Error> for InvalidPubkey<LEN>
impl<const LEN: usize> From<Error> for InvalidPubkey<LEN>
source§fn from(v: Error) -> InvalidPubkey<LEN>
fn from(v: Error) -> InvalidPubkey<LEN>
Converts to this type from the input type.
source§impl From<InvalidPubkey<32>> for AddressParseError
impl From<InvalidPubkey<32>> for AddressParseError
source§fn from(v: InvalidPubkey<32>) -> AddressParseError
fn from(v: InvalidPubkey<32>) -> AddressParseError
Converts to this type from the input type.
source§impl From<InvalidPubkey<33>> for XpubDecodeError
impl From<InvalidPubkey<33>> for XpubDecodeError
source§fn from(v: InvalidPubkey<33>) -> Self
fn from(v: InvalidPubkey<33>) -> Self
Converts to this type from the input type.
source§impl<const LEN: usize> From<InvalidPubkey<LEN>> for PubkeyParseError<LEN>
impl<const LEN: usize> From<InvalidPubkey<LEN>> for PubkeyParseError<LEN>
source§fn from(v: InvalidPubkey<LEN>) -> PubkeyParseError<LEN>
fn from(v: InvalidPubkey<LEN>) -> PubkeyParseError<LEN>
Converts to this type from the input type.
source§impl<const LEN: usize> PartialEq for InvalidPubkey<LEN>
impl<const LEN: usize> PartialEq for InvalidPubkey<LEN>
source§fn eq(&self, other: &InvalidPubkey<LEN>) -> bool
fn eq(&self, other: &InvalidPubkey<LEN>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<const LEN: usize> Copy for InvalidPubkey<LEN>
impl<const LEN: usize> Eq for InvalidPubkey<LEN>
impl<const LEN: usize> StructuralPartialEq for InvalidPubkey<LEN>
Auto Trait Implementations§
impl<const LEN: usize> Freeze for InvalidPubkey<LEN>
impl<const LEN: usize> RefUnwindSafe for InvalidPubkey<LEN>
impl<const LEN: usize> Send for InvalidPubkey<LEN>
impl<const LEN: usize> Sync for InvalidPubkey<LEN>
impl<const LEN: usize> Unpin for InvalidPubkey<LEN>
impl<const LEN: usize> UnwindSafe for InvalidPubkey<LEN>
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 Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.