Struct bech32::primitives::decode::SegwitCodeLengthError
source · #[non_exhaustive]pub struct SegwitCodeLengthError(pub usize);
Expand description
Encoding HRP, witver, and program into an address exceeds maximum allowed.
Tuple Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.0: usize
Trait Implementations§
source§impl Clone for SegwitCodeLengthError
impl Clone for SegwitCodeLengthError
source§fn clone(&self) -> SegwitCodeLengthError
fn clone(&self) -> SegwitCodeLengthError
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 SegwitCodeLengthError
impl Debug for SegwitCodeLengthError
source§impl Display for SegwitCodeLengthError
impl Display for SegwitCodeLengthError
source§impl Error for SegwitCodeLengthError
impl Error for SegwitCodeLengthError
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<CodeLengthError> for SegwitCodeLengthError
impl From<CodeLengthError> for SegwitCodeLengthError
source§fn from(e: CodeLengthError) -> Self
fn from(e: CodeLengthError) -> Self
Converts to this type from the input type.
source§impl From<SegwitCodeLengthError> for EncodeError
impl From<SegwitCodeLengthError> for EncodeError
source§fn from(e: SegwitCodeLengthError) -> Self
fn from(e: SegwitCodeLengthError) -> Self
Converts to this type from the input type.
source§impl PartialEq<SegwitCodeLengthError> for SegwitCodeLengthError
impl PartialEq<SegwitCodeLengthError> for SegwitCodeLengthError
source§fn eq(&self, other: &SegwitCodeLengthError) -> bool
fn eq(&self, other: &SegwitCodeLengthError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SegwitCodeLengthError
impl StructuralEq for SegwitCodeLengthError
impl StructuralPartialEq for SegwitCodeLengthError
Auto Trait Implementations§
impl RefUnwindSafe for SegwitCodeLengthError
impl Send for SegwitCodeLengthError
impl Sync for SegwitCodeLengthError
impl Unpin for SegwitCodeLengthError
impl UnwindSafe for SegwitCodeLengthError
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