#[non_exhaustive]pub enum ParseDigestError {
InvalidLength {
observed: usize,
},
InvalidHex {
index: usize,
},
}Expand description
A canonical 32-byte lowercase/uppercase hexadecimal identifier was malformed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidLength
The textual form was not exactly 64 ASCII bytes.
InvalidHex
One byte was not an ASCII hexadecimal digit.
Trait Implementations§
Source§impl Clone for ParseDigestError
impl Clone for ParseDigestError
Source§fn clone(&self) -> ParseDigestError
fn clone(&self) -> ParseDigestError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ParseDigestError
Source§impl Debug for ParseDigestError
impl Debug for ParseDigestError
Source§impl Display for ParseDigestError
impl Display for ParseDigestError
impl Eq for ParseDigestError
Source§impl Error for ParseDigestError
impl Error for ParseDigestError
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 ParseDigestError
impl PartialEq for ParseDigestError
impl StructuralPartialEq for ParseDigestError
Auto Trait Implementations§
impl Freeze for ParseDigestError
impl RefUnwindSafe for ParseDigestError
impl Send for ParseDigestError
impl Sync for ParseDigestError
impl Unpin for ParseDigestError
impl UnsafeUnpin for ParseDigestError
impl UnwindSafe for ParseDigestError
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