pub enum EmbeddingDistanceMetric {
Cosine,
DotProduct,
Euclidean,
Manhattan,
Hamming,
Jaccard,
Custom,
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for EmbeddingDistanceMetric
impl Clone for EmbeddingDistanceMetric
Source§fn clone(&self) -> EmbeddingDistanceMetric
fn clone(&self) -> EmbeddingDistanceMetric
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 EmbeddingDistanceMetric
impl Debug for EmbeddingDistanceMetric
Source§impl Display for EmbeddingDistanceMetric
impl Display for EmbeddingDistanceMetric
Source§impl FromStr for EmbeddingDistanceMetric
impl FromStr for EmbeddingDistanceMetric
Source§impl Hash for EmbeddingDistanceMetric
impl Hash for EmbeddingDistanceMetric
Source§impl Ord for EmbeddingDistanceMetric
impl Ord for EmbeddingDistanceMetric
Source§fn cmp(&self, other: &EmbeddingDistanceMetric) -> Ordering
fn cmp(&self, other: &EmbeddingDistanceMetric) -> Ordering
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
Source§impl PartialEq for EmbeddingDistanceMetric
impl PartialEq for EmbeddingDistanceMetric
Source§fn eq(&self, other: &EmbeddingDistanceMetric) -> bool
fn eq(&self, other: &EmbeddingDistanceMetric) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for EmbeddingDistanceMetric
impl PartialOrd for EmbeddingDistanceMetric
impl Copy for EmbeddingDistanceMetric
impl Eq for EmbeddingDistanceMetric
impl StructuralPartialEq for EmbeddingDistanceMetric
Auto Trait Implementations§
impl Freeze for EmbeddingDistanceMetric
impl RefUnwindSafe for EmbeddingDistanceMetric
impl Send for EmbeddingDistanceMetric
impl Sync for EmbeddingDistanceMetric
impl Unpin for EmbeddingDistanceMetric
impl UnsafeUnpin for EmbeddingDistanceMetric
impl UnwindSafe for EmbeddingDistanceMetric
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