Struct gix_revision::graph::Commit
source · pub struct Commit<'graph> { /* private fields */ }
Expand description
A commit that provides access to graph-related information.
Implementations§
source§impl<'graph> Commit<'graph>
impl<'graph> Commit<'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<u64, Error>
pub fn committer_timestamp(&self) -> Result<u64, 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.
Auto Trait Implementations§
impl<'graph> RefUnwindSafe for Commit<'graph>
impl<'graph> Send for Commit<'graph>
impl<'graph> Sync for Commit<'graph>
impl<'graph> Unpin for Commit<'graph>
impl<'graph> UnwindSafe for Commit<'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