pub struct AnchorMatcher { /* private fields */ }Expand description
Exact semantic matcher for source text placement and anchor review.
Implementations§
Source§impl AnchorMatcher
impl AnchorMatcher
Sourcepub fn new(config: AnchorConfig) -> Result<Self>
pub fn new(config: AnchorConfig) -> Result<Self>
Validates configuration and creates an anchor matcher.
§Errors
Returns an error for an invalid model, threshold, or suggestion count.
pub const fn config(&self) -> &AnchorConfig
Sourcepub fn match_links(
&self,
report: &SemanticLinkReport,
page_vectors: &[SemanticVector],
candidates: &[AnchorCandidate],
) -> Result<AnchorMatchReport>
pub fn match_links( &self, report: &SemanticLinkReport, page_vectors: &[SemanticVector], candidates: &[AnchorCandidate], ) -> Result<AnchorMatchReport>
Matches caller-extracted source text to directed semantic link targets.
§Errors
Returns duplicate, missing-vector, dimension, model, or numeric errors.
Trait Implementations§
Source§impl Clone for AnchorMatcher
impl Clone for AnchorMatcher
Source§fn clone(&self) -> AnchorMatcher
fn clone(&self) -> AnchorMatcher
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AnchorMatcher
impl Debug for AnchorMatcher
Source§impl PartialEq for AnchorMatcher
impl PartialEq for AnchorMatcher
impl StructuralPartialEq for AnchorMatcher
Auto Trait Implementations§
impl Freeze for AnchorMatcher
impl RefUnwindSafe for AnchorMatcher
impl Send for AnchorMatcher
impl Sync for AnchorMatcher
impl Unpin for AnchorMatcher
impl UnsafeUnpin for AnchorMatcher
impl UnwindSafe for AnchorMatcher
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