#[non_exhaustive]pub struct Stats { /* private fields */ }Expand description
The Loc metric suite.
Implementations§
Source§impl Stats
impl Stats
Sourcepub fn dloc(&self) -> u64
pub fn dloc(&self) -> u64
The Dloc metric: Documentation Lines Of Code.
Counts the rows a language treats as documentation — a doc
comment its own tool recognises (Checker::is_doc_comment), a
Python docstring, a Perl POD block. Those rows are also comment
lines, so dloc() <= cloc(); a language without a documentation
syntax reports 0 (#1597).
Sourcepub fn sloc_average(&self) -> f64
pub fn sloc_average(&self) -> f64
The Sloc metric average value.
This value is computed dividing the Sloc value for the number of spaces
Sourcepub fn ploc_average(&self) -> f64
pub fn ploc_average(&self) -> f64
The Ploc metric average value.
This value is computed dividing the Ploc value for the number of spaces
Sourcepub fn lloc_average(&self) -> f64
pub fn lloc_average(&self) -> f64
The Lloc metric average value.
This value is computed dividing the Lloc value for the number of spaces
Sourcepub fn cloc_average(&self) -> f64
pub fn cloc_average(&self) -> f64
The Cloc metric average value.
This value is computed dividing the Cloc value for the number of spaces
Sourcepub fn dloc_average(&self) -> f64
pub fn dloc_average(&self) -> f64
The Dloc metric average value.
This value is computed dividing the Dloc value for the number of spaces
Sourcepub fn blank_average(&self) -> f64
pub fn blank_average(&self) -> f64
The Blank metric average value.
This value is computed dividing the Blank value for the number of spaces