pub struct GrepOptions {Show 13 fields
pub path: Option<String>,
pub after_context: u32,
pub before_context: u32,
pub context: Option<u32>,
pub case_insensitive: bool,
pub glob: Option<String>,
pub file_type: Option<String>,
pub max_matches: Option<usize>,
pub output_mode: GrepOutputMode,
pub multiline: bool,
pub line_numbers: bool,
pub invert: bool,
pub fixed_string: bool,
}Expand description
Grep search options (ripgrep-style).
Fields§
§path: Option<String>Search root path (None = current working directory).
after_context: u32Lines of context after each match.
before_context: u32Lines of context before each match.
context: Option<u32>Symmetric context (overrides before/after if set).
case_insensitive: boolCase-insensitive search.
glob: Option<String>File glob filter (e.g., “*.rs”).
file_type: Option<String>File type filter (e.g., “rust”, “python”).
max_matches: Option<usize>Maximum number of matches to return.
output_mode: GrepOutputModeOutput mode.
multiline: boolEnable multiline matching (pattern can span lines).
line_numbers: boolInclude line numbers in output.
invert: boolInvert match (show non-matching lines).
fixed_string: boolTreat pattern as literal string (not regex).
Trait Implementations§
Source§impl Clone for GrepOptions
impl Clone for GrepOptions
Source§fn clone(&self) -> GrepOptions
fn clone(&self) -> GrepOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GrepOptions
impl Debug for GrepOptions
Source§impl Default for GrepOptions
impl Default for GrepOptions
Source§fn default() -> GrepOptions
fn default() -> GrepOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GrepOptions
impl<'de> Deserialize<'de> for GrepOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GrepOptions
impl RefUnwindSafe for GrepOptions
impl Send for GrepOptions
impl Sync for GrepOptions
impl Unpin for GrepOptions
impl UnsafeUnpin for GrepOptions
impl UnwindSafe for GrepOptions
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