Enum lucky_commit::ParseHashSpecErr
source · #[non_exhaustive]pub enum ParseHashSpecErr {
TooLong,
InvalidCharacter(char),
}
Expand description
An error that results from parsing an invalid HashSpec
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.
TooLong
The input string is longer than a hash with the specified algorithm
InvalidCharacter(char)
The input string contains characters which are neither hex characters nor ‘_’.
Trait Implementations§
source§impl Debug for ParseHashSpecErr
impl Debug for ParseHashSpecErr
source§impl Display for ParseHashSpecErr
impl Display for ParseHashSpecErr
source§impl Error for ParseHashSpecErr
impl Error for ParseHashSpecErr
1.30.0 · source§fn 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 · 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 ParseHashSpecErr
impl PartialEq for ParseHashSpecErr
source§fn eq(&self, other: &ParseHashSpecErr) -> bool
fn eq(&self, other: &ParseHashSpecErr) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ParseHashSpecErr
impl StructuralPartialEq for ParseHashSpecErr
Auto Trait Implementations§
impl Freeze for ParseHashSpecErr
impl RefUnwindSafe for ParseHashSpecErr
impl Send for ParseHashSpecErr
impl Sync for ParseHashSpecErr
impl Unpin for ParseHashSpecErr
impl UnwindSafe for ParseHashSpecErr
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