[][src]Struct git2::Revspec

pub struct Revspec<'repo> { /* fields omitted */ }

A revspec represents a range of revisions within a repository.

Methods

impl<'repo> Revspec<'repo>
[src]

pub fn from_objects(
    from: Option<Object<'repo>>,
    to: Option<Object<'repo>>,
    mode: RevparseMode
) -> Revspec<'repo>
[src]

Assembles a new revspec from the from/to components.

pub fn from(&self) -> Option<&Object<'repo>>
[src]

Access the from range of this revspec.

pub fn to(&self) -> Option<&Object<'repo>>
[src]

Access the to range of this revspec.

pub fn mode(&self) -> RevparseMode
[src]

Returns the intent of the revspec.

Auto Trait Implementations

impl<'repo> !Send for Revspec<'repo>

impl<'repo> !Sync for Revspec<'repo>

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

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

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

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

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]