pub struct Revspec<'repo> { /* private fields */ }
Expand description
A revspec represents a range of revisions within a repository.
Implementations
sourceimpl<'repo> Revspec<'repo>
impl<'repo> Revspec<'repo>
sourcepub fn from_objects(
from: Option<Object<'repo>>,
to: Option<Object<'repo>>,
mode: RevparseMode
) -> Revspec<'repo>
pub fn from_objects(
from: Option<Object<'repo>>,
to: Option<Object<'repo>>,
mode: RevparseMode
) -> Revspec<'repo>
Assembles a new revspec from the from/to components.
sourcepub fn mode(&self) -> RevparseMode
pub fn mode(&self) -> RevparseMode
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more