pub struct SearchIndex { /* private fields */ }Expand description
An inverted index for fast substring search.
Uses n-gram indexing to support substring matching. When a name is added, we break it into overlapping n-grams and index each one. During search, we look up the query’s n-grams and intersect the results.
Implementations§
Trait Implementations§
Source§impl Clone for SearchIndex
impl Clone for SearchIndex
Source§fn clone(&self) -> SearchIndex
fn clone(&self) -> SearchIndex
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 SearchIndex
impl Debug for SearchIndex
Source§impl Default for SearchIndex
impl Default for SearchIndex
Source§fn default() -> SearchIndex
fn default() -> SearchIndex
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SearchIndex
impl RefUnwindSafe for SearchIndex
impl Send for SearchIndex
impl Sync for SearchIndex
impl Unpin for SearchIndex
impl UnsafeUnpin for SearchIndex
impl UnwindSafe for SearchIndex
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