Struct bech32::primitives::decode::CodeLengthError
source · #[non_exhaustive]pub struct CodeLengthError {
pub encoded_length: usize,
pub code_length: usize,
}
Expand description
Encoding HRP and data into a bech32 string exceeds the checksum code length.
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.encoded_length: usize
The length of the string if encoded with checksum.
code_length: usize
The checksum specific code length.
Trait Implementations§
source§impl Clone for CodeLengthError
impl Clone for CodeLengthError
source§fn clone(&self) -> CodeLengthError
fn clone(&self) -> CodeLengthError
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 CodeLengthError
impl Debug for CodeLengthError
source§impl Display for CodeLengthError
impl Display for CodeLengthError
source§impl Error for CodeLengthError
impl Error for CodeLengthError
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 EncodeError
impl From<CodeLengthError> for EncodeError
source§fn from(e: CodeLengthError) -> Self
fn from(e: CodeLengthError) -> Self
Converts to this type from the input type.
source§impl From<CodeLengthError> for EncodeIoError
impl From<CodeLengthError> for EncodeIoError
source§fn from(e: CodeLengthError) -> Self
fn from(e: CodeLengthError) -> Self
Converts to this type from the input type.
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 PartialEq<CodeLengthError> for CodeLengthError
impl PartialEq<CodeLengthError> for CodeLengthError
source§fn eq(&self, other: &CodeLengthError) -> bool
fn eq(&self, other: &CodeLengthError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CodeLengthError
impl StructuralEq for CodeLengthError
impl StructuralPartialEq for CodeLengthError
Auto Trait Implementations§
impl RefUnwindSafe for CodeLengthError
impl Send for CodeLengthError
impl Sync for CodeLengthError
impl Unpin for CodeLengthError
impl UnwindSafe for CodeLengthError
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