Enum bech32::Error
[−]
[src]
pub enum Error { MissingSeparator, InvalidChecksum, InvalidLength, InvalidChar(u8), InvalidData(u8), InvalidPadding, MixedCase, }
Error types for Bech32 encoding / decoding
Variants
MissingSeparator
String does not contain the separator character
InvalidChecksum
The checksum does not match the rest of the data
InvalidLength
The data or human-readable part is too long or too short
InvalidChar(u8)
Some part of the string contains an invalid character
InvalidData(u8)
Some part of the data has an invalid value
InvalidPadding
The bit conversion failed due to a padding issue
MixedCase
The whole string must be of one case
Trait Implementations
impl Copy for Error
[src]
impl Clone for Error
[src]
fn clone(&self) -> Error
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Error
[src]
fn eq(&self, __arg_0: &Error) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Error) -> bool
[src]
This method tests for !=
.
impl Debug for Error
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Display for Error
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more