pub enum CommitOidError {
Empty,
InvalidLength(usize),
InvalidHex,
}Expand description
Error type for CommitOid construction.
Variants§
Empty
The string is empty.
InvalidLength(usize)
The string length is not 40 (SHA-1) or 64 (SHA-256).
InvalidHex
The string contains non-hex characters.
Trait Implementations§
Source§impl Clone for CommitOidError
impl Clone for CommitOidError
Source§fn clone(&self) -> CommitOidError
fn clone(&self) -> CommitOidError
Returns a duplicate 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 CommitOidError
impl Debug for CommitOidError
Source§impl Display for CommitOidError
impl Display for CommitOidError
Source§impl Error for CommitOidError
impl Error for CommitOidError
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 CommitOidError
impl PartialEq for CommitOidError
impl Eq for CommitOidError
impl StructuralPartialEq for CommitOidError
Auto Trait Implementations§
impl Freeze for CommitOidError
impl RefUnwindSafe for CommitOidError
impl Send for CommitOidError
impl Sync for CommitOidError
impl Unpin for CommitOidError
impl UnsafeUnpin for CommitOidError
impl UnwindSafe for CommitOidError
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