Enum data_encoding::decode::Error [] [src]

pub enum Error {
    BadLength,
    BadCharacter(usize),
    BadPadding,
}

Decoding errors.

Variants

Bad input length.

The input length is not a multiple of the decoding length, given by dec(base).

Bad input character.

The input does not contain only symbols and padding, or symbols and padding are at inappropriate positions. Only the last decoding block may contain padding and this padding must start at a valid position and be uninterrupted by symbols to the end of the block.

Bad padding.

The non-significant bits preceding padding and left out by decoding are non-zero.

Methods

impl Error
[src]

Increments error position.

Maps error position.

Trait Implementations

impl Copy for Error
[src]

impl Clone for Error
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Error
[src]

Formats the value using the given formatter.

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 Eq for Error
[src]

impl Display for Error
[src]

Formats the value using the given formatter.

impl Error for Error
[src]

A short description of the error. Read more

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