Struct gix_revwalk::graph::Commit
source · pub struct Commit<T> {
pub parents: SmallVec<[ObjectId; 1]>,
pub commit_time: SecondsSinceUnixEpoch,
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: SecondsSinceUnixEpoch
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> Freeze for Commit<T>where
T: Freeze,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)