Enum bech32::Error [] [src]

pub enum Error {
    MissingSeparator,
    InvalidChecksum,
    InvalidLength,
    InvalidChar(u8),
    InvalidData(u8),
    MixedCase,
}

Error types for Bech32 encoding / decoding

Variants

String does not contain the separator character

The checksum does not match the rest of the data

The data or human-readable part is too long or too short

Some part of the string contains an invalid character

Some part of the data has an invalid value

The whole string must be of one case

Trait Implementations

impl PartialEq for Error
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for Error
[src]

Formats the value using the given formatter.

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl Error for Error
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more