[][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> RefUnwindSafe for Revspec<'repo>

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

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

impl<'repo> Unpin for Revspec<'repo>

impl<'repo> UnwindSafe for Revspec<'repo>

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.