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]
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