pub struct ChangeCouplingAnalysis {
pub couplings: Vec<FileCoupling>,
pub high_coupling_count: usize,
pub total_files_analyzed: usize,
}Expand description
Change Coupling analysis result
Fields§
§couplings: Vec<FileCoupling>File coupling relationships (sorted by coupling degree)
high_coupling_count: usizeNumber of high couplings (70% or more)
total_files_analyzed: usizeNumber of files analyzed
Implementations§
Source§impl ChangeCouplingAnalysis
impl ChangeCouplingAnalysis
Sourcepub fn coupling_count(&self) -> usize
pub fn coupling_count(&self) -> usize
Get coupling count
Sourcepub fn grouped_by_file(&self) -> Vec<(&str, Vec<&FileCoupling>)>
pub fn grouped_by_file(&self) -> Vec<(&str, Vec<&FileCoupling>)>
Get couplings grouped by file
Trait Implementations§
Source§impl Clone for ChangeCouplingAnalysis
impl Clone for ChangeCouplingAnalysis
Source§fn clone(&self) -> ChangeCouplingAnalysis
fn clone(&self) -> ChangeCouplingAnalysis
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChangeCouplingAnalysis
impl Debug for ChangeCouplingAnalysis
Source§impl Default for ChangeCouplingAnalysis
impl Default for ChangeCouplingAnalysis
Source§fn default() -> ChangeCouplingAnalysis
fn default() -> ChangeCouplingAnalysis
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ChangeCouplingAnalysis
impl RefUnwindSafe for ChangeCouplingAnalysis
impl Send for ChangeCouplingAnalysis
impl Sync for ChangeCouplingAnalysis
impl Unpin for ChangeCouplingAnalysis
impl UnsafeUnpin for ChangeCouplingAnalysis
impl UnwindSafe for ChangeCouplingAnalysis
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> 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