Enum rust_version::ParseCommitError
[−]
[src]
pub enum ParseCommitError<'a> { Length(&'a [u8]), Format(&'a [u8]), Nonexistent(&'a [u8]), Ambiguous(&'a [u8]), Fetch, }
Error encountered when parsing a Commit
.
Variants
Length(&'a [u8])
The given string was too long.
Format(&'a [u8])
Could not parse the given bytes as a number in hexadecimal.
Nonexistent(&'a [u8])
Only a partial commit was given, but the commit didn't exist.
Ambiguous(&'a [u8])
Only a partial commit was given, and it was ambiguous.
Fetch
Could not fetch list of commits from GitHub.
Trait Implementations
impl<'a> Clone for ParseCommitError<'a>
[src]
fn clone(&self) -> ParseCommitError<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> Copy for ParseCommitError<'a>
[src]
impl<'a> Eq for ParseCommitError<'a>
[src]
impl<'a> Hash for ParseCommitError<'a>
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<'a> PartialEq for ParseCommitError<'a>
[src]
fn eq(&self, __arg_0: &ParseCommitError<'a>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ParseCommitError<'a>) -> bool
[src]
This method tests for !=
.
impl<'a> Debug for ParseCommitError<'a>
[src]
impl<'a> Display for ParseCommitError<'a>
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more