pub struct Error(/* private fields */);Expand description
An error occurred during base58 decoding (with checksum).
Implementations§
Source§impl Error
impl Error
Sourcepub fn invalid_character(&self) -> Option<u8>
pub fn invalid_character(&self) -> Option<u8>
Returns the invalid base58 character, if encountered.
Sourcepub fn incorrect_checksum(&self) -> Option<(u32, u32)>
pub fn incorrect_checksum(&self) -> Option<(u32, u32)>
Returns the incorrect checksum along with the expected checksum, if encountered.
Sourcepub fn invalid_length(&self) -> Option<usize>
pub fn invalid_length(&self) -> Option<usize>
Returns the invalid base58 string length (require at least 4 bytes for checksum), if encountered.
Trait Implementations§
Source§impl Error for Error
Available on crate feature std only.
impl Error for Error
Available on crate feature
std only.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 From<Infallible> for Error
impl From<Infallible> for Error
Source§fn from(never: Infallible) -> Self
fn from(never: Infallible) -> Self
Converts to this type from the input type.
Source§impl From<InvalidCharacterError> for Error
impl From<InvalidCharacterError> for Error
Source§fn from(e: InvalidCharacterError) -> Self
fn from(e: InvalidCharacterError) -> Self
Converts to this type from the input type.
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin 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