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

The given string was too long.

Could not parse the given bytes as a number in hexadecimal.

Only a partial commit was given, but the commit didn't exist.

Only a partial commit was given, and it was ambiguous.

Could not fetch list of commits from GitHub.

Trait Implementations

impl<'a> Clone for ParseCommitError<'a>
[src]

[src]

Returns a copy of the value. Read more

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]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<'a> PartialEq for ParseCommitError<'a>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<'a> Debug for ParseCommitError<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> Display for ParseCommitError<'a>
[src]

[src]

Formats the value using the given formatter. Read more

impl<'a> Error for ParseCommitError<'a>
[src]

[src]

A short description of the error. Read more

1.0.0
[src]

The lower-level cause of this error, if any. Read more