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
BufferTooSmall
The output buffer was too small to contain the entire input.
InvalidCharacter
The input contained a character that was not part of the current Base58 alphabet.
Fields of InvalidCharacter
character: char | The unexpected character. |
index: usize | The (byte) index in the input string the character was at. |
NonAsciiCharacter
The input contained a multi-byte (or non-utf8) character which is unsupported by this Base58 decoder.
Fields of NonAsciiCharacter
index: usize | 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]
fn clone(&self) -> DecodeError
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 Debug for DecodeError
[src]
impl Eq for DecodeError
[src]
impl PartialEq for DecodeError
[src]
fn eq(&self, __arg_0: &DecodeError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DecodeError) -> bool
This method tests for !=
.
impl Error for DecodeError
[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