pub enum VectorMetric {
Cosine,
DotProduct,
SquaredL2,
}Expand description
Frozen vector distance semantics. Greater returned score is always better.
Variants§
Trait Implementations§
Source§impl Clone for VectorMetric
impl Clone for VectorMetric
impl Copy for VectorMetric
Source§impl Debug for VectorMetric
impl Debug for VectorMetric
Source§impl<'de> Deserialize<'de> for VectorMetric
impl<'de> Deserialize<'de> for VectorMetric
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
impl Eq for VectorMetric
Source§impl Ord for VectorMetric
impl Ord for VectorMetric
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for VectorMetric
impl PartialEq for VectorMetric
Source§impl PartialOrd for VectorMetric
impl PartialOrd for VectorMetric
Source§impl Serialize for VectorMetric
impl Serialize for VectorMetric
impl StructuralPartialEq for VectorMetric
Auto Trait Implementations§
impl Freeze for VectorMetric
impl RefUnwindSafe for VectorMetric
impl Send for VectorMetric
impl Sync for VectorMetric
impl Unpin for VectorMetric
impl UnsafeUnpin for VectorMetric
impl UnwindSafe for VectorMetric
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