pub struct Complexity {
pub functions: usize,
pub cyclomatic: usize,
pub max_depth: usize,
pub avg_func_lines: f64,
}Expand description
Code complexity metrics.
Fields§
§functions: usizeNumber of functions/methods.
cyclomatic: usizeTotal cyclomatic complexity.
max_depth: usizeMaximum nesting depth.
avg_func_lines: f64Average lines per function.
Implementations§
Source§impl Complexity
impl Complexity
Sourcepub fn add(&mut self, other: &Complexity)
pub fn add(&mut self, other: &Complexity)
Add another Complexity to this one.
Trait Implementations§
Source§impl Clone for Complexity
impl Clone for Complexity
Source§fn clone(&self) -> Complexity
fn clone(&self) -> Complexity
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 Complexity
impl Debug for Complexity
Source§impl Default for Complexity
impl Default for Complexity
Source§fn default() -> Complexity
fn default() -> Complexity
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Complexity
impl RefUnwindSafe for Complexity
impl Send for Complexity
impl Sync for Complexity
impl Unpin for Complexity
impl UnwindSafe for Complexity
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