pub struct ComplexityHistogram {
pub buckets: Vec<u32>,
pub counts: Vec<u32>,
pub total: u32,
}Expand description
Histogram of cyclomatic complexity distribution across files.
Used to visualize the distribution of complexity values in a codebase. Default bucket boundaries are 0-4, 5-9, 10-14, 15-19, 20-24, 25-29, 30+.
Fields§
§buckets: Vec<u32>Bucket boundaries (e.g., [0, 5, 10, 15, 20, 25, 30]).
counts: Vec<u32>Count of files in each bucket.
total: u32Total files analyzed.
Implementations§
Trait Implementations§
Source§impl Clone for ComplexityHistogram
impl Clone for ComplexityHistogram
Source§fn clone(&self) -> ComplexityHistogram
fn clone(&self) -> ComplexityHistogram
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 ComplexityHistogram
impl Debug for ComplexityHistogram
Source§impl<'de> Deserialize<'de> for ComplexityHistogram
impl<'de> Deserialize<'de> for ComplexityHistogram
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 ComplexityHistogram
impl RefUnwindSafe for ComplexityHistogram
impl Send for ComplexityHistogram
impl Sync for ComplexityHistogram
impl Unpin for ComplexityHistogram
impl UnsafeUnpin for ComplexityHistogram
impl UnwindSafe for ComplexityHistogram
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