pub struct ChangeHistoryAnalysis {
pub commits_analyzed: usize,
pub commits_skipped: usize,
pub dispersion: FxHashMap<PathBuf, FileDispersion>,
pub hidden_pairs: Vec<CoChangePair>,
}Expand description
Result of one pass over the commit history.
Fields§
§commits_analyzed: usizeCommits that touch at least one analyzed file and are not bulk commits.
commits_skipped: usizeCommits skipped because they touch more analyzed files than the cap.
dispersion: FxHashMap<PathBuf, FileDispersion>Dispersion per analyzed file (absolute path).
Hidden pairs: thresholds met and no static edge. Sorted by degree, then shared revisions (both descending), then by path.
Implementations§
Source§impl ChangeHistoryAnalysis
impl ChangeHistoryAnalysis
Sourcepub fn partners_of<'a>(
&'a self,
path: &'a Path,
) -> impl Iterator<Item = (&'a Path, &'a CoChangePair)>
pub fn partners_of<'a>( &'a self, path: &'a Path, ) -> impl Iterator<Item = (&'a Path, &'a CoChangePair)>
Hidden partners of path, strongest first.
Trait Implementations§
Source§impl Clone for ChangeHistoryAnalysis
impl Clone for ChangeHistoryAnalysis
Source§impl Debug for ChangeHistoryAnalysis
impl Debug for ChangeHistoryAnalysis
Auto Trait Implementations§
impl Freeze for ChangeHistoryAnalysis
impl RefUnwindSafe for ChangeHistoryAnalysis
impl Send for ChangeHistoryAnalysis
impl Sync for ChangeHistoryAnalysis
impl Unpin for ChangeHistoryAnalysis
impl UnsafeUnpin for ChangeHistoryAnalysis
impl UnwindSafe for ChangeHistoryAnalysis
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