pub enum Bech32Error {
InvalidHrp,
ConversionFailed,
OperationFailed,
UnexpectedHrp {
expected: String,
got: String,
},
InvalidLength {
expected: usize,
got: usize,
},
}Expand description
Re-export of Bech32Error for convenience when using bech32 encoding/decoding.
Error type for Bech32 operations (encoding and decoding).
Variants§
Trait Implementations§
Source§impl Clone for Bech32Error
impl Clone for Bech32Error
Source§fn clone(&self) -> Bech32Error
fn clone(&self) -> Bech32Error
Returns a duplicate 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 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 PartialEq for Bech32Error
impl PartialEq for Bech32Error
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 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