pub struct TextSearchOptions {
pub case_sensitive: bool,
pub context_lines: usize,
pub top_k: usize,
}Expand description
Options for text search.
Fields§
§case_sensitive: boolCase-sensitive matching.
context_lines: usizeNumber of context lines before/after a match.
top_k: usizeMaximum number of results.
Trait Implementations§
Source§impl Clone for TextSearchOptions
impl Clone for TextSearchOptions
Source§fn clone(&self) -> TextSearchOptions
fn clone(&self) -> TextSearchOptions
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 TextSearchOptions
impl Debug for TextSearchOptions
Auto Trait Implementations§
impl Freeze for TextSearchOptions
impl RefUnwindSafe for TextSearchOptions
impl Send for TextSearchOptions
impl Sync for TextSearchOptions
impl Unpin for TextSearchOptions
impl UnsafeUnpin for TextSearchOptions
impl UnwindSafe for TextSearchOptions
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