pub struct ImpactCounts {
pub total_issues: usize,
pub dead_code: usize,
pub complexity: usize,
pub duplication: usize,
}Expand description
Per-category issue counts captured at a recorded run.
Fields§
§total_issues: usizeSum of the category counts.
dead_code: usizeDead-code findings.
complexity: usizeComplexity findings.
duplication: usizeDuplication findings.
Implementations§
Source§impl ImpactCounts
impl ImpactCounts
Sourcepub fn from_combined(
dead_code: usize,
complexity: usize,
duplication: usize,
) -> Self
pub fn from_combined( dead_code: usize, complexity: usize, duplication: usize, ) -> Self
Counts with total_issues derived as the sum of the categories.
Trait Implementations§
Source§impl Clone for ImpactCounts
impl Clone for ImpactCounts
Source§impl Debug for ImpactCounts
impl Debug for ImpactCounts
Source§impl Default for ImpactCounts
impl Default for ImpactCounts
Source§impl<'de> Deserialize<'de> for ImpactCounts
impl<'de> Deserialize<'de> for ImpactCounts
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
impl Eq for ImpactCounts
Source§impl PartialEq for ImpactCounts
impl PartialEq for ImpactCounts
Source§impl Serialize for ImpactCounts
impl Serialize for ImpactCounts
impl StructuralPartialEq for ImpactCounts
Auto Trait Implementations§
impl Freeze for ImpactCounts
impl RefUnwindSafe for ImpactCounts
impl Send for ImpactCounts
impl Sync for ImpactCounts
impl Unpin for ImpactCounts
impl UnsafeUnpin for ImpactCounts
impl UnwindSafe for ImpactCounts
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.