pub struct LazyCommit<'graph, 'cache> { /* 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, 'cache> LazyCommit<'graph, 'cache>
impl<'graph, 'cache> LazyCommit<'graph, 'cache>
sourcepub fn iter_parents(&self) -> Parents<'graph, 'cache> ⓘ
pub fn iter_parents(&self) -> Parents<'graph, 'cache> ⓘ
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, 'cache> Freeze for LazyCommit<'graph, 'cache>
impl<'graph, 'cache> RefUnwindSafe for LazyCommit<'graph, 'cache>
impl<'graph, 'cache> Send for LazyCommit<'graph, 'cache>
impl<'graph, 'cache> Sync for LazyCommit<'graph, 'cache>
impl<'graph, 'cache> Unpin for LazyCommit<'graph, 'cache>
impl<'graph, 'cache> UnwindSafe for LazyCommit<'graph, 'cache>
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