pub struct RawMetrics {
pub avg_cyclomatic: f64,
pub avg_func_lines: f64,
pub comment_ratio: f64,
pub depth: usize,
pub avg_file_lines: f64,
pub total_files: usize,
}Fields§
§avg_cyclomatic: f64§avg_func_lines: f64§comment_ratio: f64§depth: usizeFor single file: the file’s max nesting depth. For multiple files: P90 percentile of all files’ max depths (robust against outliers).
avg_file_lines: f64§total_files: usizeImplementations§
Source§impl RawMetrics
impl RawMetrics
pub fn from_file(file: &FileStats) -> Self
pub fn from_file_refs(files: &[&FileStats]) -> Self
pub fn from_files(files: &[FileStats]) -> Self
Trait Implementations§
Source§impl Clone for RawMetrics
impl Clone for RawMetrics
Source§fn clone(&self) -> RawMetrics
fn clone(&self) -> RawMetrics
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 RawMetrics
impl Debug for RawMetrics
Source§impl Default for RawMetrics
impl Default for RawMetrics
Source§fn default() -> RawMetrics
fn default() -> RawMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RawMetrics
impl RefUnwindSafe for RawMetrics
impl Send for RawMetrics
impl Sync for RawMetrics
impl Unpin for RawMetrics
impl UnsafeUnpin for RawMetrics
impl UnwindSafe for RawMetrics
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