pub struct ComplexityMetrics {
pub cyclomatic_complexity: usize,
pub cognitive_complexity: usize,
pub nesting_depth: usize,
pub function_length_average: f64,
pub function_length_max: usize,
pub parameters_average: f64,
pub parameters_max: usize,
}
Expand description
Code complexity metrics
Fields§
§cyclomatic_complexity: usize
§cognitive_complexity: usize
§nesting_depth: usize
§function_length_average: f64
§function_length_max: usize
§parameters_average: f64
§parameters_max: usize
Trait Implementations§
Source§impl Clone for ComplexityMetrics
impl Clone for ComplexityMetrics
Source§fn clone(&self) -> ComplexityMetrics
fn clone(&self) -> ComplexityMetrics
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 ComplexityMetrics
impl Debug for ComplexityMetrics
Source§impl Default for ComplexityMetrics
impl Default for ComplexityMetrics
Source§fn default() -> ComplexityMetrics
fn default() -> ComplexityMetrics
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ComplexityMetrics
impl<'de> Deserialize<'de> for ComplexityMetrics
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 ComplexityMetrics
impl RefUnwindSafe for ComplexityMetrics
impl Send for ComplexityMetrics
impl Sync for ComplexityMetrics
impl Unpin for ComplexityMetrics
impl UnwindSafe for ComplexityMetrics
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