pub enum Error {
    BadByte(u8),
    BadChecksum(u32, u32),
    InvalidLength(usize),
    InvalidExtendedKeyVersion([u8; 4]),
    InvalidAddressVersion(u8),
    TooShort(usize),
}Expand description
An error that might occur during base58 decoding.
Variants§
BadByte(u8)
Invalid character encountered.
BadChecksum(u32, u32)
Checksum was not correct (expected, actual).
InvalidLength(usize)
The length (in bytes) of the object was not correct.
Note that if the length is excessively long the provided length may be an estimate (and the checksum step may be skipped).
InvalidExtendedKeyVersion([u8; 4])
Extended Key version byte(s) were not recognized.
InvalidAddressVersion(u8)
Address version byte were not recognized.
TooShort(usize)
Checked data was less than 4 bytes.
Trait Implementations§
source§impl From<Error> for AddressParseError
 
impl From<Error> for AddressParseError
source§impl Ord for Error
 
impl Ord for Error
source§impl PartialEq for Error
 
impl PartialEq for Error
source§impl PartialOrd for Error
 
impl PartialOrd for Error
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
 
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for 
self and other) and is used by the <=
operator. Read moreimpl Copy for Error
impl Eq for Error
impl StructuralEq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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
§impl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
 
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
 
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.