pub struct Revspec<'repo> { /* private fields */ }
Expand description
A revspec represents a range of revisions within a repository.
Implementations§
source§impl<'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> Freeze for Revspec<'repo>
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more