#[non_exhaustive]#[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 (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future 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 duplicate 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
impl Copy for FaissMetricType
impl Eq for FaissMetricType
impl StructuralPartialEq for FaissMetricType
Auto Trait Implementations§
impl Freeze for FaissMetricType
impl RefUnwindSafe for FaissMetricType
impl Send for FaissMetricType
impl Sync for FaissMetricType
impl Unpin for FaissMetricType
impl UnsafeUnpin 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