pub enum Base58Error {
Empty,
InvalidChar,
InvalidLength,
}Expand description
Errors from base58 decoding a string into a Pubkey.
Variants§
Empty
The input string was empty.
InvalidChar
The input contained a character outside the Bitcoin base58 alphabet
(excludes 0, O, I, l).
InvalidLength
The input decoded to a byte stream that is not exactly 32 bytes long.
Trait Implementations§
Source§impl Debug for Base58Error
impl Debug for Base58Error
Source§impl Display for Base58Error
impl Display for Base58Error
impl Eq for Base58Error
Source§impl Error for Base58Error
impl Error for Base58Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for Base58Error
impl PartialEq for Base58Error
impl StructuralPartialEq for Base58Error
Auto Trait Implementations§
impl Freeze for Base58Error
impl RefUnwindSafe for Base58Error
impl Send for Base58Error
impl Sync for Base58Error
impl Unpin for Base58Error
impl UnsafeUnpin for Base58Error
impl UnwindSafe for Base58Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more