Enum grep_printer::SummaryKind [−][src]
pub enum SummaryKind {
Count,
CountMatches,
PathWithMatch,
PathWithoutMatch,
Quiet,
}The type of summary output (if any) to print.
Variants
CountShow 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.
CountMatchesShow 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.
PathWithMatchShow 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.
PathWithoutMatchShow 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.
QuietDon'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 Clone for SummaryKindfn clone(&self) -> SummaryKind[src]
fn clone(&self) -> SummaryKindReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Copy for SummaryKind[src]
impl Copy for SummaryKindimpl Debug for SummaryKind[src]
impl Debug for SummaryKindfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Eq for SummaryKind[src]
impl Eq for SummaryKindimpl PartialEq for SummaryKind[src]
impl PartialEq for SummaryKindAuto Trait Implementations
impl Send for SummaryKind
impl Send for SummaryKindimpl Sync for SummaryKind
impl Sync for SummaryKind