pub struct HiddenCouplingPair {
pub path_a: PathBuf,
pub path_b: PathBuf,
pub revisions_a: u32,
pub revisions_b: u32,
pub shared_revisions: u32,
pub degree: f64,
pub strong: bool,
}Expand description
Two files that change together without a static edge between them.
Fields§
§path_a: PathBufFirst file, relative to the project root. Sorts before path_b.
path_b: PathBufSecond file, relative to the project root.
revisions_a: u32Commits that changed path_a in the window.
revisions_b: u32Commits that changed path_b in the window.
Commits that changed both files.
degree: f64Coupling degree from 0 to 1: shared_revisions divided by the mean of
revisions_a and revisions_b.
strong: boolTrue when degree reaches thresholds.strong_degree. The check uses
the rounded degree that the report shows, so 0.495 counts as 0.5.
A strong pair gives each file the hidden_coupling target factor. A
file that no other target rule claims becomes a
resolve_hidden_coupling refactoring target.
Trait Implementations§
Source§impl Clone for HiddenCouplingPair
impl Clone for HiddenCouplingPair
Source§impl Debug for HiddenCouplingPair
impl Debug for HiddenCouplingPair
Source§impl<'de> Deserialize<'de> for HiddenCouplingPair
impl<'de> Deserialize<'de> for HiddenCouplingPair
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HiddenCouplingPair
impl RefUnwindSafe for HiddenCouplingPair
impl Send for HiddenCouplingPair
impl Sync for HiddenCouplingPair
impl Unpin for HiddenCouplingPair
impl UnsafeUnpin for HiddenCouplingPair
impl UnwindSafe for HiddenCouplingPair
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