pub enum Error {
Show 26 variants UnbornHeadsHaveNoRefLog, Planned { dependency: &'static str, }, MissingRefLog { reference: BString, action: &'static str, }, PriorCheckoutOutOfRange { desired: usize, available: usize, }, RefLogEntryOutOfRange { reference: Reference, desired: usize, available: usize, }, AncestorOutOfRange { oid: Prefix, desired: usize, available: usize, }, ParentOutOfRange { oid: Prefix, desired: usize, available: usize, }, IndexLookup { desired_path: BString, desired_stage: Stage, stage_hint: Option<Stage>, exists: bool, }, FindHead(Error), Index(Error), RevWalkIterInit(Error), RevWalkAllReferences(Error), NoRegexMatch { regex: BString, oid: Prefix, commits_searched: usize, }, NoRegexMatchAllRefs { regex: BString, commits_searched: usize, }, AmbiguousRefAndObject { prefix: Prefix, reference: Reference, }, IdFromHex(Error), FindReference(Error), FindObject(Error<Error>), PeelToKind(Error), ObjectKind { oid: Prefix, actual: Kind, expected: Kind, }, Parse(Error), PrefixNotFound { prefix: Prefix, }, AmbiguousPrefix { prefix: Prefix, info: Vec<(Prefix, CandidateInfo)>, }, PathNotFound { object: Prefix, tree: Prefix, path: BString, }, Multi { current: Box<dyn Error + Send + Sync + 'static>, next: Option<Box<dyn Error + Send + Sync + 'static>>, }, Traverse(Error),
}
Expand description

The error returned by crate::Repository::rev_parse().

Variants

UnbornHeadsHaveNoRefLog

Planned

Fields

dependency: &'static str

MissingRefLog

Fields

reference: BString
action: &'static str

PriorCheckoutOutOfRange

Fields

desired: usize
available: usize

RefLogEntryOutOfRange

Fields

reference: Reference
desired: usize
available: usize

AncestorOutOfRange

Fields

oid: Prefix
desired: usize
available: usize

ParentOutOfRange

Fields

oid: Prefix
desired: usize
available: usize

IndexLookup

Fields

desired_path: BString
desired_stage: Stage
stage_hint: Option<Stage>
exists: bool

FindHead(Error)

Index(Error)

RevWalkIterInit(Error)

RevWalkAllReferences(Error)

NoRegexMatch

Fields

regex: BString
oid: Prefix
commits_searched: usize

NoRegexMatchAllRefs

Fields

regex: BString
commits_searched: usize

AmbiguousRefAndObject

Fields

prefix: Prefix

The prefix to look for.

reference: Reference

The reference matching the prefix.

IdFromHex(Error)

FindReference(Error)

FindObject(Error<Error>)

PeelToKind(Error)

ObjectKind

Fields

oid: Prefix
actual: Kind
expected: Kind

Parse(Error)

PrefixNotFound

Fields

prefix: Prefix

AmbiguousPrefix

Fields

prefix: Prefix

PathNotFound

Fields

object: Prefix
tree: Prefix
path: BString

Multi

Fields

current: Box<dyn Error + Send + Sync + 'static>
next: Option<Box<dyn Error + Send + Sync + 'static>>

Traverse(Error)

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

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

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

🔬 This is a nightly-only experimental API. (error_generic_member_access)

Provides type based access to context intended for error reports. Read more

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

Converts the given value to a [CompactString]. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.