Enum ethprim::ParseDigestError
source · Expand description
Represents an error parsing a digest from a string.
Variants
InvalidLength
The string does not have the correct length.
InvalidHexCharacter
An invalid character was found.
Trait Implementations
sourceimpl Clone for ParseDigestError
impl Clone for ParseDigestError
sourcefn clone(&self) -> ParseDigestError
fn clone(&self) -> ParseDigestError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for ParseDigestError
impl Debug for ParseDigestError
sourceimpl Display for ParseDigestError
impl Display for ParseDigestError
sourceimpl Error for ParseDigestError
impl Error for ParseDigestError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<ParseHexError> for ParseDigestError
impl From<ParseHexError> for ParseDigestError
sourcefn from(err: ParseHexError) -> ParseDigestError
fn from(err: ParseHexError) -> ParseDigestError
Converts to this type from the input type.
sourceimpl PartialEq<ParseDigestError> for ParseDigestError
impl PartialEq<ParseDigestError> for ParseDigestError
sourcefn eq(&self, other: &ParseDigestError) -> bool
fn eq(&self, other: &ParseDigestError) -> bool
impl Eq for ParseDigestError
impl StructuralEq for ParseDigestError
impl StructuralPartialEq for ParseDigestError
Auto Trait Implementations
impl RefUnwindSafe for ParseDigestError
impl Send for ParseDigestError
impl Sync for ParseDigestError
impl Unpin for ParseDigestError
impl UnwindSafe for ParseDigestError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more