struct ArgsImp {
matches: ArgMatches,
command: Command,
threads: usize,
matcher: PatternMatcher,
paths: Vec<PathBuf>,
using_default_path: bool,
}Fields§
§matches: ArgMatchesMid-to-low level routines for extracting CLI arguments.
command: CommandThe command we want to execute.
threads: usizeThe number of threads to use. This is based in part on available threads, in part on the number of threads requested and in part on the command we’re running.
matcher: PatternMatcherA matcher built from the patterns.
It’s important that this is only built once, since building this goes through regex compilation and various types of analyses. That is, if you need many of these (one per thread, for example), it is better to build it once and then clone it.
paths: Vec<PathBuf>The paths provided at the command line. This is guaranteed to be non-empty. (If no paths are provided, then a default path is created.)
using_default_path: boolReturns true if and only if paths had to be populated with a single
default path.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ArgsImp
impl Send for ArgsImp
impl Sync for ArgsImp
impl Unpin for ArgsImp
impl UnwindSafe for ArgsImp
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