Struct git2::Revspec

source ·
pub struct Revspec<'repo> { /* private fields */ }
Expand description

A revspec represents a range of revisions within a repository.

Implementations§

Assembles a new revspec from the from/to components.

Access the from range of this revspec.

Access the to range of this revspec.

Returns the intent of the revspec.

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 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.