pub struct AnchorConfig { /* private fields */ }Expand description
Configuration for matching extracted source text to link targets.
Implementations§
Source§impl AnchorConfig
impl AnchorConfig
Sourcepub fn new(
model: impl Into<String>,
min_similarity: f64,
max_suggestions_per_link: usize,
) -> Self
pub fn new( model: impl Into<String>, min_similarity: f64, max_suggestions_per_link: usize, ) -> Self
Creates a model-specific anchor matching policy.
Sourcepub const fn min_similarity(&self) -> f64
pub const fn min_similarity(&self) -> f64
Inclusive cosine threshold for a source text fragment.
Sourcepub const fn max_suggestions_per_link(&self) -> usize
pub const fn max_suggestions_per_link(&self) -> usize
Maximum ranked anchor placements returned per directed link.
Trait Implementations§
Source§impl Clone for AnchorConfig
impl Clone for AnchorConfig
Source§fn clone(&self) -> AnchorConfig
fn clone(&self) -> AnchorConfig
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 AnchorConfig
impl Debug for AnchorConfig
Source§impl PartialEq for AnchorConfig
impl PartialEq for AnchorConfig
impl StructuralPartialEq for AnchorConfig
Auto Trait Implementations§
impl Freeze for AnchorConfig
impl RefUnwindSafe for AnchorConfig
impl Send for AnchorConfig
impl Sync for AnchorConfig
impl Unpin for AnchorConfig
impl UnsafeUnpin for AnchorConfig
impl UnwindSafe for AnchorConfig
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