pub struct ChurnResult {
pub files: FxHashMap<PathBuf, FileChurn>,
pub shallow_clone: bool,
pub author_pool: Vec<String>,
pub clock: AnalysisClock,
pub git_log_bytes: u64,
}Expand description
Result of churn analysis.
Fields§
§files: FxHashMap<PathBuf, FileChurn>Per-file churn data, keyed by absolute path.
shallow_clone: boolWhether the repository is a shallow clone.
Author email pool. Per-file AuthorContribution entries reference
authors by their index into this vector.
clock: AnalysisClockThe instant recency weighting and staleness were measured against. Ownership and routing reuse it so every churn-derived number in one run agrees on “now”.
git_log_bytes: u64Bytes of git log output that this run read. Zero when the churn
cache or a churn file supplied all the history.
Trait Implementations§
Source§impl Clone for ChurnResult
impl Clone for ChurnResult
Auto Trait Implementations§
impl Freeze for ChurnResult
impl RefUnwindSafe for ChurnResult
impl Send for ChurnResult
impl Sync for ChurnResult
impl Unpin for ChurnResult
impl UnsafeUnpin for ChurnResult
impl UnwindSafe for ChurnResult
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more