pub struct CachedMatches { /* private fields */ }Expand description
Cached search results from fuzzy search.
Maps (pattern_index, start_position) -> Vec<FuzzyMatchResult>
Implementations§
Source§impl CachedMatches
impl CachedMatches
Sourcepub fn get(
&self,
pattern_index: usize,
start: usize,
) -> Option<&FuzzyMatchResult>
pub fn get( &self, pattern_index: usize, start: usize, ) -> Option<&FuzzyMatchResult>
Get the best match for a pattern at a specific start position.
Sourcepub fn get_all(
&self,
pattern_index: usize,
start: usize,
) -> Option<&[FuzzyMatchResult]>
pub fn get_all( &self, pattern_index: usize, start: usize, ) -> Option<&[FuzzyMatchResult]>
Get all matches for a pattern at a specific start position.
Sourcepub fn insert(
&mut self,
pattern_index: usize,
start: usize,
result: FuzzyMatchResult,
)
pub fn insert( &mut self, pattern_index: usize, start: usize, result: FuzzyMatchResult, )
Insert a match result for a pattern at a specific start position.
Trait Implementations§
Source§impl Debug for CachedMatches
impl Debug for CachedMatches
Source§impl Default for CachedMatches
impl Default for CachedMatches
Source§fn default() -> CachedMatches
fn default() -> CachedMatches
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CachedMatches
impl RefUnwindSafe for CachedMatches
impl Send for CachedMatches
impl Sync for CachedMatches
impl Unpin for CachedMatches
impl UnsafeUnpin for CachedMatches
impl UnwindSafe for CachedMatches
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