pub struct MatchingEngine<'a> { /* private fields */ }Expand description
The main matching engine
Implementations§
Source§impl<'a> MatchingEngine<'a>
impl<'a> MatchingEngine<'a>
Sourcepub fn new(catalog: &'a ReferenceCatalog, config: MatchingConfig) -> Self
pub fn new(catalog: &'a ReferenceCatalog, config: MatchingConfig) -> Self
Create a new matching engine with custom configuration
Sourcepub fn find_matches(
&self,
query: &QueryHeader,
limit: usize,
) -> Vec<MatchResult>
pub fn find_matches( &self, query: &QueryHeader, limit: usize, ) -> Vec<MatchResult>
Find the best matching references for a query
Auto Trait Implementations§
impl<'a> Freeze for MatchingEngine<'a>
impl<'a> RefUnwindSafe for MatchingEngine<'a>
impl<'a> Send for MatchingEngine<'a>
impl<'a> Sync for MatchingEngine<'a>
impl<'a> Unpin for MatchingEngine<'a>
impl<'a> UnwindSafe for MatchingEngine<'a>
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