Enum faiss_next_sys::FaissMetricType
source · #[repr(u32)]pub enum FaissMetricType {
METRIC_INNER_PRODUCT = 0,
METRIC_L2 = 1,
METRIC_L1 = 2,
METRIC_Linf = 3,
METRIC_Lp = 4,
METRIC_Canberra = 20,
METRIC_BrayCurtis = 21,
METRIC_JensenShannon = 22,
}Variants§
METRIC_INNER_PRODUCT = 0
METRIC_L2 = 1
METRIC_L1 = 2
METRIC_Linf = 3
METRIC_Lp = 4
METRIC_Canberra = 20
METRIC_BrayCurtis = 21
METRIC_JensenShannon = 22
Trait Implementations§
source§impl Clone for FaissMetricType
impl Clone for FaissMetricType
source§fn clone(&self) -> FaissMetricType
fn clone(&self) -> FaissMetricType
Returns a copy of the value. Read more
1.0.0 · 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 FaissMetricType
impl Debug for FaissMetricType
source§impl Hash for FaissMetricType
impl Hash for FaissMetricType
source§impl PartialEq for FaissMetricType
impl PartialEq for FaissMetricType
source§fn eq(&self, other: &FaissMetricType) -> bool
fn eq(&self, other: &FaissMetricType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for FaissMetricType
impl Eq for FaissMetricType
impl StructuralEq for FaissMetricType
impl StructuralPartialEq for FaissMetricType
Auto Trait Implementations§
impl RefUnwindSafe for FaissMetricType
impl Send for FaissMetricType
impl Sync for FaissMetricType
impl Unpin for FaissMetricType
impl UnwindSafe for FaissMetricType
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