pub enum QueryTerm {
Exact(String),
Prefix(String),
Fuzzy(String, u32),
Regex(String),
}Expand description
One parsed query token and how it should match the term dictionary.
Variants§
Exact(String)
Exact term match.
Prefix(String)
Prefix match (term*).
Fuzzy(String, u32)
Levenshtein fuzzy match within dist edits (term~ / term~N).
Regex(String)
Regex over the term dictionary (/pattern/) — a slower full-term scan.
Trait Implementations§
impl Eq for QueryTerm
impl StructuralPartialEq for QueryTerm
Auto Trait Implementations§
impl Freeze for QueryTerm
impl RefUnwindSafe for QueryTerm
impl Send for QueryTerm
impl Sync for QueryTerm
impl Unpin for QueryTerm
impl UnsafeUnpin for QueryTerm
impl UnwindSafe for QueryTerm
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