pub enum Command {
Search,
SearchParallel,
SearchNever,
Files,
FilesParallel,
Types,
PCRE2Version,
}
Expand description
The command that ripgrep should execute based on the command line configuration.
Variants§
Search
Search using exactly one thread.
SearchParallel
Search using possibly many threads.
SearchNever
The command line parameters suggest that a search should occur, but ripgrep knows that a match can never be found (e.g., no given patterns or –max-count=0).
Files
Show the files that would be searched, but don’t actually search them, and use exactly one thread.
FilesParallel
Show the files that would be searched, but don’t actually search them, and perform directory traversal using possibly many threads.
Types
List all file type definitions configured, including the default file types and any additional file types added to the command line.
PCRE2Version
Print the version of PCRE2 in use.
Implementations§
Trait Implementations§
source§impl PartialEq<Command> for Command
impl PartialEq<Command> for Command
impl Copy for Command
impl Eq for Command
impl StructuralEq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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