Enum grep_printer::SummaryKind
source · 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§
source§impl Clone for SummaryKind
impl Clone for SummaryKind
source§fn clone(&self) -> SummaryKind
fn clone(&self) -> SummaryKind
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SummaryKind
impl Debug for SummaryKind
source§impl PartialEq for SummaryKind
impl PartialEq for SummaryKind
impl Copy for SummaryKind
impl Eq for SummaryKind
impl StructuralPartialEq for SummaryKind
Auto Trait Implementations§
impl Freeze for SummaryKind
impl RefUnwindSafe for SummaryKind
impl Send for SummaryKind
impl Sync for SummaryKind
impl Unpin for SummaryKind
impl UnwindSafe for SummaryKind
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)