Struct tokei::Stats [−][src]
pub struct Stats { pub blanks: usize, pub code: usize, pub comments: usize, pub lines: usize, pub name: PathBuf, }
A struct representing the statistics of a file.
Fields
blanks: usize
Number of blank lines within the file.
code: usize
Number of lines of code within the file.
comments: usize
Number of comments within the file. (includes both multi line, and single line comments)
lines: usize
Total number of lines within the file.
name: PathBuf
File name.
Methods
impl Stats
[src]
impl Stats
Trait Implementations
impl Clone for Stats
[src]
impl Clone for Stats
fn clone(&self) -> Stats
[src]
fn clone(&self) -> Stats
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Stats
[src]
impl Debug for Stats
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for Stats
[src]
impl Display for Stats