pub enum Mode {
Standard,
Count,
FilesWithMatches,
Quiet,
Json,
}Expand description
The mutually exclusive output modes.
Mutually exclusive because each one is a different answer to “what is a
result”: a line, a count, a path, or nothing at all. cli collapses the
flags into exactly one of these, so nothing downstream has to re-derive
precedence.
Variants§
Standard
One line per match — the default.
Count
-c: one member:count line per member that matched.
FilesWithMatches
-l: one member line per member that matched.
Quiet
-q: nothing at all; the exit code is the whole report.
Json
--json: one JSON object per event, JSON Lines.
Trait Implementations§
impl Copy for Mode
impl Eq for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnsafeUnpin for Mode
impl UnwindSafe for Mode
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
Mutably borrows from an owned value. Read more