Struct grep_printer::Stats[][src]

pub struct Stats { /* fields omitted */ }

Summary statistics produced at the end of a search.

When statistics are reported by a printer, they correspond to all searches executed with that printer.

Methods

impl Stats
[src]

Return a new value for tracking aggregate statistics across searches.

All statistics are set to 0.

Return the total amount of time elapsed.

Return the total number of searches executed.

Return the total number of searches that found at least one match.

Return the total number of bytes searched.

Return the total number of bytes printed.

Return the total number of lines that participated in a match.

When matches may contain multiple lines then this includes every line that is part of every match.

Return the total number of matches.

There may be multiple matches per line.

Add to the elapsed time.

Add to the number of searches executed.

Add to the number of searches that found at least one match.

Add to the total number of bytes searched.

Add to the total number of bytes printed.

Add to the total number of lines that participated in a match.

Add to the total number of matches.

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 Default for Stats
[src]

Returns the "default value" for a type. Read more

impl PartialEq for Stats
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Stats
[src]

impl Add for Stats
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl<'a> Add<&'a Stats> for Stats
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl AddAssign for Stats
[src]

Performs the += operation.

impl<'a> AddAssign<&'a Stats> for Stats
[src]

Performs the += operation.

Auto Trait Implementations

impl Send for Stats

impl Sync for Stats