pub enum Bech32Error {
InvalidHex,
InvalidKey(String),
}Variants§
Trait Implementations§
Source§impl Debug for Bech32Error
impl Debug for Bech32Error
Source§impl Display for Bech32Error
impl Display for Bech32Error
Source§impl Error for Bech32Error
impl Error for Bech32Error
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 From<Bech32Error> for Error
impl From<Bech32Error> for Error
Source§fn from(source: Bech32Error) -> Self
fn from(source: Bech32Error) -> Self
Converts to this type from the input type.
Source§impl From<Bech32Error> for NIP25Error
impl From<Bech32Error> for NIP25Error
Source§fn from(source: Bech32Error) -> Self
fn from(source: Bech32Error) -> Self
Converts to this type from the input type.
Source§impl From<Bech32Error> for NIP2Error
impl From<Bech32Error> for NIP2Error
Source§fn from(source: Bech32Error) -> Self
fn from(source: Bech32Error) -> Self
Converts to this type from the input type.
Source§impl From<Bech32Error> for NIP5Error
impl From<Bech32Error> for NIP5Error
Source§fn from(source: Bech32Error) -> Self
fn from(source: Bech32Error) -> Self
Converts to this type from the input type.
Source§impl From<Error> for Bech32Error
impl From<Error> for Bech32Error
Source§impl From<FromHexError> for Bech32Error
impl From<FromHexError> for Bech32Error
Source§fn from(_err: FromHexError) -> Self
fn from(_err: FromHexError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Bech32Error
impl PartialEq for Bech32Error
Source§fn eq(&self, other: &Bech32Error) -> bool
fn eq(&self, other: &Bech32Error) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for Bech32Error
impl StructuralPartialEq for Bech32Error
Auto Trait Implementations§
impl Freeze for Bech32Error
impl RefUnwindSafe for Bech32Error
impl Send for Bech32Error
impl Sync for Bech32Error
impl Unpin for Bech32Error
impl UnsafeUnpin for Bech32Error
impl UnwindSafe for Bech32Error
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.