pub struct CommandLinePathMatchOptions {
pub case_insensitive: bool,
pub normalize_separators: bool,
pub support_quotes: bool,
pub support_wsl_translation: bool,
pub match_basename: bool,
pub require_component_boundary: bool,
}Expand description
Options for detecting a path inside a command-line string.
Fields§
§case_insensitive: boolCompare with ASCII case folding when true.
normalize_separators: boolNormalize \ and / before matching.
support_quotes: boolParse double- and single-quoted tokens.
support_wsl_translation: boolTranslate /mnt/<drive>/... tokens before matching.
match_basename: boolAlso match the path basename as a token (intentionally fuzzy).
require_component_boundary: boolRequire path separators at token boundaries (reduces repo vs repository false positives).
Implementations§
Trait Implementations§
Source§impl Clone for CommandLinePathMatchOptions
impl Clone for CommandLinePathMatchOptions
Source§fn clone(&self) -> CommandLinePathMatchOptions
fn clone(&self) -> CommandLinePathMatchOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CommandLinePathMatchOptions
Source§impl Debug for CommandLinePathMatchOptions
impl Debug for CommandLinePathMatchOptions
impl Eq for CommandLinePathMatchOptions
impl StructuralPartialEq for CommandLinePathMatchOptions
Auto Trait Implementations§
impl Freeze for CommandLinePathMatchOptions
impl RefUnwindSafe for CommandLinePathMatchOptions
impl Send for CommandLinePathMatchOptions
impl Sync for CommandLinePathMatchOptions
impl Unpin for CommandLinePathMatchOptions
impl UnsafeUnpin for CommandLinePathMatchOptions
impl UnwindSafe for CommandLinePathMatchOptions
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