Struct gix_revision::graph::Commit
source · pub struct Commit<T> {
pub parents: SmallVec<[ObjectId; 1]>,
pub commit_time: i64,
pub generation: Option<u32>,
pub data: T,
}
Expand description
A commit that contains all information we can obtain through the commit-graph, which is typically enough to fuel any graph iteration.
Fields§
§parents: SmallVec<[ObjectId; 1]>
The parents of the commit.
commit_time: i64
The time at which the commit was created.
generation: Option<u32>
The generation of the commit, if available.
data: T
Any kind of data to associate with this commit.
Trait Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for Commit<T>where
T: RefUnwindSafe,
impl<T> Send for Commit<T>where
T: Send,
impl<T> Sync for Commit<T>where
T: Sync,
impl<T> Unpin for Commit<T>where
T: Unpin,
impl<T> UnwindSafe for Commit<T>where
T: UnwindSafe,
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