pub struct CodebaseMetrics {
pub total_files: usize,
pub total_classes: usize,
pub total_functions: usize,
pub total_methods: usize,
pub total_tests: usize,
pub total_loc: i64,
pub avg_complexity: f64,
pub avg_coverage: Option<f64>,
}Expand description
Compute aggregate metrics for the codebase.
Fields§
§total_files: usize§total_classes: usize§total_functions: usize§total_methods: usize§total_tests: usize§total_loc: i64§avg_complexity: f64§avg_coverage: Option<f64>Trait Implementations§
Source§impl Clone for CodebaseMetrics
impl Clone for CodebaseMetrics
Source§fn clone(&self) -> CodebaseMetrics
fn clone(&self) -> CodebaseMetrics
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CodebaseMetrics
impl RefUnwindSafe for CodebaseMetrics
impl Send for CodebaseMetrics
impl Sync for CodebaseMetrics
impl Unpin for CodebaseMetrics
impl UnsafeUnpin for CodebaseMetrics
impl UnwindSafe for CodebaseMetrics
Blanket Implementations§
impl<T> Allocation for T
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