pub struct SearchOpts {
pub case_insensitive: bool,
pub smart_case: bool,
pub word: bool,
pub fixed: bool,
pub invert: bool,
pub before: usize,
pub after: usize,
pub line_numbers: bool,
pub text: bool,
pub max_count: Option<u64>,
pub heap_limit: usize,
pub crlf: bool,
}Fields§
§case_insensitive: bool§smart_case: bool§word: bool§fixed: bool§invert: bool§before: usize§after: usize§line_numbers: bool§text: bool-a: search members that look binary.
max_count: Option<u64>§heap_limit: usize§crlf: bool--crlf: treat CRLF as the line terminator. Off by default — see
agrees_with_rg_on_anchored_patterns in tests/differential.rs for
why this must never be hard-coded on.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SearchOpts
impl RefUnwindSafe for SearchOpts
impl Send for SearchOpts
impl Sync for SearchOpts
impl Unpin for SearchOpts
impl UnsafeUnpin for SearchOpts
impl UnwindSafe for SearchOpts
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