pub enum InvalidCommitId {
Empty,
InvalidLength,
ContainsNonHexCharacter,
}Expand description
Reasons a string fails to parse as a commit ID.
Variants§
Trait Implementations§
Source§impl Clone for InvalidCommitId
impl Clone for InvalidCommitId
Source§fn clone(&self) -> InvalidCommitId
fn clone(&self) -> InvalidCommitId
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 moreSource§impl Debug for InvalidCommitId
impl Debug for InvalidCommitId
Source§impl Display for InvalidCommitId
impl Display for InvalidCommitId
Source§impl Error for InvalidCommitId
impl Error for InvalidCommitId
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 InvalidCommitId
impl PartialEq for InvalidCommitId
Source§fn eq(&self, other: &InvalidCommitId) -> bool
fn eq(&self, other: &InvalidCommitId) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for InvalidCommitId
impl Eq for InvalidCommitId
impl StructuralPartialEq for InvalidCommitId
Auto Trait Implementations§
impl Freeze for InvalidCommitId
impl RefUnwindSafe for InvalidCommitId
impl Send for InvalidCommitId
impl Sync for InvalidCommitId
impl Unpin for InvalidCommitId
impl UnsafeUnpin for InvalidCommitId
impl UnwindSafe for InvalidCommitId
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