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)>
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<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<const LEN: usize> From<InvalidPubkey<LEN>> for DecodeError
impl<const LEN: usize> From<InvalidPubkey<LEN>> for DecodeError
Source§fn from(e: InvalidPubkey<LEN>) -> DecodeError
fn from(e: InvalidPubkey<LEN>) -> DecodeError
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> From<InvalidPubkey<LEN>> for String
impl<const LEN: usize> From<InvalidPubkey<LEN>> for String
Source§fn from(err: InvalidPubkey<LEN>) -> String
fn from(err: InvalidPubkey<LEN>) -> String
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>
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.