pub enum SimilarityModel {
TfIdf,
Bm25 {
k1: f32,
b: f32,
},
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for SimilarityModel
impl Clone for SimilarityModel
Source§fn clone(&self) -> SimilarityModel
fn clone(&self) -> SimilarityModel
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 SimilarityModel
impl Debug for SimilarityModel
Source§impl<'de> Deserialize<'de> for SimilarityModel
impl<'de> Deserialize<'de> for SimilarityModel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SimilarityModel
impl PartialEq for SimilarityModel
Source§fn eq(&self, other: &SimilarityModel) -> bool
fn eq(&self, other: &SimilarityModel) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SimilarityModel
impl Serialize for SimilarityModel
impl StructuralPartialEq for SimilarityModel
Auto Trait Implementations§
impl Freeze for SimilarityModel
impl RefUnwindSafe for SimilarityModel
impl Send for SimilarityModel
impl Sync for SimilarityModel
impl Unpin for SimilarityModel
impl UnsafeUnpin for SimilarityModel
impl UnwindSafe for SimilarityModel
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