pub enum SearchMode {
Exact(String),
Fuzzy(String, u32),
Pattern(Vec<PatternToken>),
Regex(Regex),
}Expand description
The kind of text matching to apply.
Variants§
Exact(String)
Exact literal substring match (triggered by ' prefix).
Fuzzy(String, u32)
Fuzzy character-order match with a maximum gap distance.
Pattern(Vec<PatternToken>)
Space-separated tokens with +require, -exclude, and "quoted phrase" support.
Regex(Regex)
Full regular expression (triggered by /pattern/ syntax).
Trait Implementations§
Source§impl Clone for SearchMode
impl Clone for SearchMode
Source§fn clone(&self) -> SearchMode
fn clone(&self) -> SearchMode
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 moreAuto Trait Implementations§
impl Freeze for SearchMode
impl RefUnwindSafe for SearchMode
impl Send for SearchMode
impl Sync for SearchMode
impl Unpin for SearchMode
impl UnsafeUnpin for SearchMode
impl UnwindSafe for SearchMode
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