Enum bs58::decode::DecodeError [−][src]
pub enum DecodeError { BufferTooSmall, InvalidCharacter { character: char, index: usize, }, NonAsciiCharacter { index: usize, }, // some variants omitted }
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 Copy for DecodeError
impl Clone for DecodeError
[src]
impl Clone for DecodeError
fn clone(&self) -> DecodeError
[src]
fn clone(&self) -> DecodeError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for DecodeError
[src]
impl Debug for DecodeError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for DecodeError
[src]
impl Eq for DecodeError
impl PartialEq for DecodeError
[src]
impl PartialEq for DecodeError
fn eq(&self, other: &DecodeError) -> bool
[src]
fn eq(&self, other: &DecodeError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &DecodeError) -> bool
[src]
fn ne(&self, other: &DecodeError) -> bool
This method tests for !=
.
impl Error for DecodeError
[src]
impl Error for DecodeError
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl Display for DecodeError
[src]
impl Display for DecodeError
Auto Trait Implementations
impl Send for DecodeError
impl Send for DecodeError
impl Sync for DecodeError
impl Sync for DecodeError