[][src]Enum grep_printer::SummaryKind

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

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

impl Clone for SummaryKind[src]

impl Copy for SummaryKind[src]

impl Debug for SummaryKind[src]

impl Eq for SummaryKind[src]

impl PartialEq<SummaryKind> for SummaryKind[src]

impl StructuralEq for SummaryKind[src]

impl StructuralPartialEq for SummaryKind[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.