Enum bs58::decode::DecodeError [] [src]

pub enum DecodeError {
    BufferTooSmall,
    InvalidCharacter {
        character: char,
        index: usize,
    },
    NonAsciiCharacter {
        index: usize,
    },
}

Errors that could occur when decoding a Base58 encoded string.

Variants

The output buffer was too small to contain the entire input.

The input contained a character that was not part of the current Base58 alphabet.

Fields of InvalidCharacter

The unexpected character.

The (byte) index in the input string the character was at.

The input contained a multi-byte (or non-utf8) character which is unsupported by this Base58 decoder.

Fields of NonAsciiCharacter

The (byte) index in the input string the start of the character was at.

Trait Implementations

impl Copy for DecodeError
[src]

impl Clone for DecodeError
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for DecodeError
[src]

Formats the value using the given formatter.

impl Eq for DecodeError
[src]

impl PartialEq for DecodeError
[src]

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

This method tests for !=.

impl Error for DecodeError
[src]

A short description of the error. Read more

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

impl Display for DecodeError
[src]

Formats the value using the given formatter. Read more