#[non_exhaustive]pub struct Stats { /* private fields */ }Expand description
The Wmc metric.
This metric sums the cyclomatic complexities of all the methods defined in a class.
The Wmc (Weighted Methods per Class) is an object-oriented metric for classes.
Original paper and definition: https://www.researchgate.net/publication/3187649_Kemerer_CF_A_metric_suite_for_object_oriented_design_IEEE_Trans_Softw_Eng_206_476-493
Implementations§
Source§impl Stats
impl Stats
Sourcepub fn interface_wmc(&self) -> u64
pub fn interface_wmc(&self) -> u64
Returns the Wmc metric value of the interfaces in a space.
Sourcepub fn class_wmc_sum(&self) -> u64
pub fn class_wmc_sum(&self) -> u64
Returns the sum of the Wmc metric values of the classes in a space.
Sourcepub fn interface_wmc_sum(&self) -> u64
pub fn interface_wmc_sum(&self) -> u64
Returns the sum of the Wmc metric values of the interfaces in a space.
Trait Implementations§
impl StructuralPartialEq for Stats
Auto Trait Implementations§
impl Freeze for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnsafeUnpin for Stats
impl UnwindSafe for Stats
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