Enum bech32::primitives::decode::UncheckedHrpstringError
source · #[non_exhaustive]pub enum UncheckedHrpstringError {
Char(CharError),
Hrp(Error),
}
Expand description
Errors when parsing a bech32 encoded string.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Char(CharError)
An error with the characters of the input string.
Hrp(Error)
The human-readable part is invalid.
Trait Implementations§
source§impl Clone for UncheckedHrpstringError
impl Clone for UncheckedHrpstringError
source§fn clone(&self) -> UncheckedHrpstringError
fn clone(&self) -> UncheckedHrpstringError
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 Debug for UncheckedHrpstringError
impl Debug for UncheckedHrpstringError
source§impl Display for UncheckedHrpstringError
impl Display for UncheckedHrpstringError
source§impl Error for UncheckedHrpstringError
impl Error for UncheckedHrpstringError
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<CharError> for UncheckedHrpstringError
impl From<CharError> for UncheckedHrpstringError
source§impl From<Error> for UncheckedHrpstringError
impl From<Error> for UncheckedHrpstringError
source§impl From<UncheckedHrpstringError> for CheckedHrpstringError
impl From<UncheckedHrpstringError> for CheckedHrpstringError
source§fn from(e: UncheckedHrpstringError) -> Self
fn from(e: UncheckedHrpstringError) -> Self
Converts to this type from the input type.
source§impl From<UncheckedHrpstringError> for DecodeError
impl From<UncheckedHrpstringError> for DecodeError
source§fn from(e: UncheckedHrpstringError) -> Self
fn from(e: UncheckedHrpstringError) -> Self
Converts to this type from the input type.
source§impl From<UncheckedHrpstringError> for SegwitHrpstringError
impl From<UncheckedHrpstringError> for SegwitHrpstringError
source§fn from(e: UncheckedHrpstringError) -> Self
fn from(e: UncheckedHrpstringError) -> Self
Converts to this type from the input type.
source§impl PartialEq<UncheckedHrpstringError> for UncheckedHrpstringError
impl PartialEq<UncheckedHrpstringError> for UncheckedHrpstringError
source§fn eq(&self, other: &UncheckedHrpstringError) -> bool
fn eq(&self, other: &UncheckedHrpstringError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for UncheckedHrpstringError
impl StructuralEq for UncheckedHrpstringError
impl StructuralPartialEq for UncheckedHrpstringError
Auto Trait Implementations§
impl RefUnwindSafe for UncheckedHrpstringError
impl Send for UncheckedHrpstringError
impl Sync for UncheckedHrpstringError
impl Unpin for UncheckedHrpstringError
impl UnwindSafe for UncheckedHrpstringError
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