Struct gix_revision::graph::LazyCommit  
source · pub struct LazyCommit<'graph> { /* private fields */ }Expand description
A commit that provides access to graph-related information, on demand.
The owned version of this type is called Commit and can be obtained by calling LazyCommit::to_owned().
Implementations§
source§impl<'graph> LazyCommit<'graph>
 
impl<'graph> LazyCommit<'graph>
sourcepub fn iter_parents(&self) -> Parents<'graph> ⓘ
 
pub fn iter_parents(&self) -> Parents<'graph> ⓘ
Return an iterator over the parents of this commit.
sourcepub fn committer_timestamp(&self) -> Result<i64, Error>
 
pub fn committer_timestamp(&self) -> Result<i64, Error>
Returns the timestamp at which this commit was created.
This is the single-most important date for determining recency of commits. Note that this can only fail if the commit is backed by the object database and parsing fails.
sourcepub fn generation(&self) -> Option<u32>
 
pub fn generation(&self) -> Option<u32>
Returns the generation of the commit if it is backed by a commit graph.
Auto Trait Implementations§
impl<'graph> RefUnwindSafe for LazyCommit<'graph>
impl<'graph> Send for LazyCommit<'graph>
impl<'graph> Sync for LazyCommit<'graph>
impl<'graph> Unpin for LazyCommit<'graph>
impl<'graph> UnwindSafe for LazyCommit<'graph>
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