Struct gix_traverse::commit::Info
source · pub struct Info {
pub id: ObjectId,
pub parent_ids: ParentIds,
pub commit_time: Option<SecondsSinceUnixEpoch>,
}
Expand description
Information about a commit that we obtained naturally as part of the iteration.
Fields§
§id: ObjectId
The id of the commit.
parent_ids: ParentIds
All parent ids we have encountered. Note that these will be at most one if Parents::First
is enabled.
commit_time: Option<SecondsSinceUnixEpoch>
The time at which the commit was created. It will only be Some(_)
if the chosen traversal was
taking dates into consideration.
Trait Implementations§
source§impl Ord for Info
impl Ord for Info
source§impl PartialEq for Info
impl PartialEq for Info
source§impl PartialOrd for Info
impl PartialOrd for Info
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Info
impl StructuralPartialEq for Info
Auto Trait Implementations§
impl Freeze for Info
impl RefUnwindSafe for Info
impl Send for Info
impl Sync for Info
impl Unpin for Info
impl UnwindSafe for Info
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)