pub struct SearchOptions {
pub case_insensitive: bool,
pub multi_line: bool,
pub dot_matches_new_line: bool,
pub word: bool,
pub fixed_strings: bool,
pub before_context: usize,
pub after_context: usize,
}Expand description
User-facing search options (the subset of ripgrep flags rgx threads through so far). These travel over the daemon protocol and drive both query extraction and the confirm step.
Fields§
§case_insensitive: bool§multi_line: bool§dot_matches_new_line: bool§word: bool-w: match only at word boundaries.
fixed_strings: bool-F: treat the pattern as a literal string.
before_context: usize-B / -C: lines of leading context.
after_context: usize-A / -C: lines of trailing context.
Trait Implementations§
Source§impl Clone for SearchOptions
impl Clone for SearchOptions
Source§fn clone(&self) -> SearchOptions
fn clone(&self) -> SearchOptions
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 SearchOptions
Source§impl Debug for SearchOptions
impl Debug for SearchOptions
Source§impl Default for SearchOptions
impl Default for SearchOptions
Source§fn default() -> SearchOptions
fn default() -> SearchOptions
Returns the “default value” for a type. Read more
impl Eq for SearchOptions
Source§impl PartialEq for SearchOptions
impl PartialEq for SearchOptions
Source§fn eq(&self, other: &SearchOptions) -> bool
fn eq(&self, other: &SearchOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SearchOptions
Auto Trait Implementations§
impl Freeze for SearchOptions
impl RefUnwindSafe for SearchOptions
impl Send for SearchOptions
impl Sync for SearchOptions
impl Unpin for SearchOptions
impl UnsafeUnpin for SearchOptions
impl UnwindSafe for SearchOptions
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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