pub struct MetricValues {
pub physical_lines: u64,
pub blank_lines: u64,
pub nonblank_lines: u64,
pub raw_words: u64,
pub code_lines: u64,
pub comment_lines: u64,
pub code_blank_lines: u64,
pub paragraphs: u64,
pub visible_words: u64,
pub logical_word_stats: LogicalWordStats,
pub visible_logical_word_stats: LogicalWordStats,
}Expand description
Fixed additive metric slots shipped by the first content schema.
Fields§
§physical_lines: u64Logical physical lines across accepted text files.
blank_lines: u64Whitespace-only lines.
nonblank_lines: u64Lines containing at least one non-whitespace character.
raw_words: u64Whitespace-delimited prose words before markup projection.
code_lines: u64Code-bearing lines under code-sloc-v1.
comment_lines: u64Comment-only lines under code-sloc-v1.
code_blank_lines: u64Blank lines under code-sloc-v1, distinct from whitespace-only source lines.
paragraphs: u64Plain-text paragraph runs.
visible_words: u64Reader-visible Markdown words.
logical_word_stats: LogicalWordStatsAdditive logical-word sufficient statistics.
visible_logical_word_stats: LogicalWordStatsReader-visible Markdown logical-word sufficient statistics.
Trait Implementations§
Source§impl Clone for MetricValues
impl Clone for MetricValues
impl Copy for MetricValues
Source§impl Debug for MetricValues
impl Debug for MetricValues
Source§impl Default for MetricValues
impl Default for MetricValues
impl Eq for MetricValues
Source§impl PartialEq for MetricValues
impl PartialEq for MetricValues
impl StructuralPartialEq for MetricValues
Auto Trait Implementations§
impl Freeze for MetricValues
impl RefUnwindSafe for MetricValues
impl Send for MetricValues
impl Sync for MetricValues
impl Unpin for MetricValues
impl UnsafeUnpin for MetricValues
impl UnwindSafe for MetricValues
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