pub struct Similar {
pub id: FactId,
pub score: f32,
pub reason: SimilarReason,
}Expand description
One similar-fact hint.
Fields§
§id: FactIdThe existing fact.
score: f32Match strength (for the lexical detector: the Jaccard overlap of
the term sets, in (similar_jaccard, 1]).
reason: SimilarReasonWhat triggered the hint.
Trait Implementations§
impl Copy for Similar
impl StructuralPartialEq for Similar
Auto Trait Implementations§
impl Freeze for Similar
impl RefUnwindSafe for Similar
impl Send for Similar
impl Sync for Similar
impl Unpin for Similar
impl UnsafeUnpin for Similar
impl UnwindSafe for Similar
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