pub struct ExportedCommitCounts {
pub total: usize,
pub newly: usize,
}Expand description
A partition of the commits that land in the destination, computed over
the SINGLE copied ref set. total is every unique commit reachable from
the copied branch/tag tips; newly is the subset minted during this
export run. already is the remainder. Because newly is a subset of
the same walk that produced total, newly + already == total holds by
construction — the summary can never report more “newly written” than
“total”, and no orphan/unreferenced state (minted but reachable from no
copied ref, hence never in the walk) can inflate any count.
Fields§
§total: usize§newly: usizeTrait Implementations§
Source§impl Clone for ExportedCommitCounts
impl Clone for ExportedCommitCounts
Source§fn clone(&self) -> ExportedCommitCounts
fn clone(&self) -> ExportedCommitCounts
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ExportedCommitCounts
Source§impl Debug for ExportedCommitCounts
impl Debug for ExportedCommitCounts
Source§impl Default for ExportedCommitCounts
impl Default for ExportedCommitCounts
Source§fn default() -> ExportedCommitCounts
fn default() -> ExportedCommitCounts
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ExportedCommitCounts
impl RefUnwindSafe for ExportedCommitCounts
impl Send for ExportedCommitCounts
impl Sync for ExportedCommitCounts
impl Unpin for ExportedCommitCounts
impl UnsafeUnpin for ExportedCommitCounts
impl UnwindSafe for ExportedCommitCounts
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