Enum grep_printer::SummaryKind[][src]

pub enum SummaryKind {
    Count,
    CountMatches,
    PathWithMatch,
    PathWithoutMatch,
    Quiet,
}
Expand description

The type of summary output (if any) to print.

Variants

Count

Show only a count of the total number of matches (counting each line at most once) found.

If the path setting is enabled, then the count is prefixed by the corresponding file path.

CountMatches

Show only a count of the total number of matches (counting possibly many matches on each line) found.

If the path setting is enabled, then the count is prefixed by the corresponding file path.

PathWithMatch

Show only the file path if and only if a match was found.

This ignores the path setting and always shows the file path. If no file path is provided, then searching will immediately stop and return an error.

PathWithoutMatch

Show only the file path if and only if a match was found.

This ignores the path setting and always shows the file path. If no file path is provided, then searching will immediately stop and return an error.

Quiet

Don’t show any output and the stop the search once a match is found.

Note that if stats is enabled, then searching continues in order to compute statistics.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.