pub struct Jaccard;
Trait Implementations§
Source§impl Measure for Jaccard
impl Measure for Jaccard
fn min_feature_size(&self, query_size: usize, alpha: f64) -> usize
fn max_feature_size( &self, query_size: usize, alpha: f64, _db: &dyn Database, ) -> usize
fn minimum_common_feature_count( &self, query_size: usize, y_size: usize, alpha: f64, ) -> usize
fn similarity(&self, x: &[Spur], y: &[Spur]) -> f64
impl Copy for Jaccard
Auto Trait Implementations§
impl Freeze for Jaccard
impl RefUnwindSafe for Jaccard
impl Send for Jaccard
impl Sync for Jaccard
impl Unpin for Jaccard
impl UnwindSafe for Jaccard
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more