pub struct GrepOptions<'a> {
pub pattern: &'a str,
pub paths: &'a [String],
pub globs: &'a [String],
pub fixed_strings: bool,
pub ignore_case: bool,
pub word: bool,
pub context: Option<usize>,
pub before_context: Option<usize>,
pub after_context: Option<usize>,
pub max_count: Option<usize>,
pub format: Format,
}Fields§
§pattern: &'a str§paths: &'a [String]§globs: &'a [String]§fixed_strings: bool§ignore_case: bool§word: bool§context: Option<usize>§before_context: Option<usize>§after_context: Option<usize>§max_count: Option<usize>§format: FormatAuto Trait Implementations§
impl<'a> Freeze for GrepOptions<'a>
impl<'a> RefUnwindSafe for GrepOptions<'a>
impl<'a> Send for GrepOptions<'a>
impl<'a> Sync for GrepOptions<'a>
impl<'a> Unpin for GrepOptions<'a>
impl<'a> UnsafeUnpin for GrepOptions<'a>
impl<'a> UnwindSafe for GrepOptions<'a>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more