Enum hash40::errors::ParseHashError
source · pub enum ParseHashError {
MissingPrefix,
ParseError(ParseIntError),
}
Variants§
MissingPrefix
The error returned when the numeric hash string doesn’t begin with “0x”
ParseError(ParseIntError)
The error returned when the hexadecimal part of the hash string cannot be parsed
Trait Implementations§
source§impl Clone for ParseHashError
impl Clone for ParseHashError
source§fn clone(&self) -> ParseHashError
fn clone(&self) -> ParseHashError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ParseHashError
impl Debug for ParseHashError
source§impl From<ParseHashError> for CustomLabelError
impl From<ParseHashError> for CustomLabelError
source§fn from(err: ParseHashError) -> Self
fn from(err: ParseHashError) -> Self
Converts to this type from the input type.
source§impl From<ParseIntError> for ParseHashError
impl From<ParseIntError> for ParseHashError
source§fn from(err: ParseIntError) -> Self
fn from(err: ParseIntError) -> Self
Converts to this type from the input type.
source§impl PartialEq<ParseHashError> for ParseHashError
impl PartialEq<ParseHashError> for ParseHashError
source§fn eq(&self, other: &ParseHashError) -> bool
fn eq(&self, other: &ParseHashError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ParseHashError
impl StructuralEq for ParseHashError
impl StructuralPartialEq for ParseHashError
Auto Trait Implementations§
impl RefUnwindSafe for ParseHashError
impl Send for ParseHashError
impl Sync for ParseHashError
impl Unpin for ParseHashError
impl UnwindSafe for ParseHashError
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