Enum bech32::Error [−][src]
pub enum Error {
MissingSeparator,
InvalidChecksum,
InvalidLength,
InvalidChar(char),
InvalidData(u8),
InvalidPadding,
MixedCase,
}
Expand description
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(char)
Tuple Fields
0: char
Some part of the string contains an invalid character
InvalidData(u8)
Tuple Fields
0: 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
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more