Enum bech32::primitives::decode::PaddingError
source · #[non_exhaustive]pub enum PaddingError {
TooMuch,
NonZero,
}
Expand description
Error validating the padding bits on the witness data.
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.
TooMuch
The data payload has too many bits of padding.
NonZero
The data payload is padded with non-zero bits.
Trait Implementations§
source§impl Clone for PaddingError
impl Clone for PaddingError
source§fn clone(&self) -> PaddingError
fn clone(&self) -> PaddingError
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 PaddingError
impl Debug for PaddingError
source§impl Display for PaddingError
impl Display for PaddingError
source§impl Error for PaddingError
impl Error for PaddingError
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<PaddingError> for SegwitHrpstringError
impl From<PaddingError> for SegwitHrpstringError
source§fn from(e: PaddingError) -> Self
fn from(e: PaddingError) -> Self
Converts to this type from the input type.
source§impl PartialEq<PaddingError> for PaddingError
impl PartialEq<PaddingError> for PaddingError
source§fn eq(&self, other: &PaddingError) -> bool
fn eq(&self, other: &PaddingError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for PaddingError
impl StructuralEq for PaddingError
impl StructuralPartialEq for PaddingError
Auto Trait Implementations§
impl RefUnwindSafe for PaddingError
impl Send for PaddingError
impl Sync for PaddingError
impl Unpin for PaddingError
impl UnwindSafe for PaddingError
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