[][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 Eq for SummaryKind[src]

impl Copy for SummaryKind[src]

impl PartialEq<SummaryKind> for SummaryKind[src]

#[must_use]
default fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Clone for SummaryKind[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for SummaryKind[src]

Auto Trait Implementations

impl Send for SummaryKind

impl Sync for SummaryKind

Blanket Implementations

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

type Owned = T

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.