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

Number of blank lines within the file.

Number of lines of code within the file.

Number of comments within the file. (includes both multi line, and single line comments)

Total number of lines within the file.

File name.

Methods

impl Stats
[src]

Create a new Stats from a ignore::DirEntry.

Trait Implementations

impl Clone for Stats
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Stats
[src]

Formats the value using the given formatter. Read more

impl Display for Stats
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Stats

impl Sync for Stats