Enum ngt::NgtDistance
source · #[repr(i32)]pub enum NgtDistance {
L1,
L2,
Angle,
Hamming,
Cosine,
NormalizedAngle,
NormalizedCosine,
Jaccard,
SparseJaccard,
NormalizedL2,
Poincare,
Lorentz,
}
Variants§
L1
L2
Angle
Hamming
Cosine
NormalizedAngle
NormalizedCosine
Jaccard
SparseJaccard
NormalizedL2
Poincare
Lorentz
Trait Implementations§
source§impl Clone for NgtDistance
impl Clone for NgtDistance
source§fn clone(&self) -> NgtDistance
fn clone(&self) -> NgtDistance
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 NgtDistance
impl Debug for NgtDistance
source§impl From<QgDistance> for NgtDistance
Available on crate feature quantized
only.
impl From<QgDistance> for NgtDistance
Available on crate feature
quantized
only.source§fn from(d: QgDistance) -> Self
fn from(d: QgDistance) -> Self
Converts to this type from the input type.
source§impl PartialEq<NgtDistance> for NgtDistance
impl PartialEq<NgtDistance> for NgtDistance
source§fn eq(&self, other: &NgtDistance) -> bool
fn eq(&self, other: &NgtDistance) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<NgtDistance> for QgDistance
Available on crate feature quantized
only.
impl TryFrom<NgtDistance> for QgDistance
Available on crate feature
quantized
only.source§impl TryFrom<i32> for NgtDistance
impl TryFrom<i32> for NgtDistance
§type Error = TryFromPrimitiveError<NgtDistance>
type Error = TryFromPrimitiveError<NgtDistance>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for NgtDistance
impl TryFromPrimitive for NgtDistance
type Primitive = i32
type Error = TryFromPrimitiveError<NgtDistance>
const NAME: &'static str = _
fn try_from_primitive( number: Self::Primitive ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for NgtDistance
impl Eq for NgtDistance
impl StructuralEq for NgtDistance
impl StructuralPartialEq for NgtDistance
Auto Trait Implementations§
impl RefUnwindSafe for NgtDistance
impl Send for NgtDistance
impl Sync for NgtDistance
impl Unpin for NgtDistance
impl UnwindSafe for NgtDistance
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