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

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

Decoding errors.

Variants

BadLength

Bad input length.

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

BadCharacter(usize)

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.

BadPadding

Bad padding.

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

Methods

impl Error
[src]

fn shift(self, delta: usize) -> Error

Increments error position.

fn map<F: FnOnce(usize) -> usize>(self, f: F) -> Error

Maps error position.

Trait Implementations

impl Eq for Error
[src]

impl PartialEq for Error
[src]

fn eq(&self, __arg_0: &Error) -> bool

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

fn ne(&self, __arg_0: &Error) -> bool

This method tests for !=.

impl Debug for Error
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for Error
[src]

fn clone(&self) -> Error

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for Error
[src]

impl Display for Error
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Error for Error
[src]

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&Error>
1.0.0

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