#[repr(i64)]pub enum NLDistanceType {
Cosine = 0,
}Expand description
The means of calculating a distance between two locations in a text embedding.
Variants§
Cosine = 0
A method of calculating distance by using cosine similarity.
Trait Implementations§
Source§impl Clone for NLDistanceType
impl Clone for NLDistanceType
Source§fn clone(&self) -> NLDistanceType
fn clone(&self) -> NLDistanceType
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 NLDistanceType
impl Debug for NLDistanceType
Source§impl Ord for NLDistanceType
impl Ord for NLDistanceType
Source§fn cmp(&self, other: &NLDistanceType) -> Ordering
fn cmp(&self, other: &NLDistanceType) -> Ordering
1.21.0 · 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 NLDistanceType
impl PartialEq for NLDistanceType
Source§impl PartialOrd for NLDistanceType
impl PartialOrd for NLDistanceType
impl Copy for NLDistanceType
impl Eq for NLDistanceType
impl StructuralPartialEq for NLDistanceType
Auto Trait Implementations§
impl Freeze for NLDistanceType
impl RefUnwindSafe for NLDistanceType
impl Send for NLDistanceType
impl Sync for NLDistanceType
impl Unpin for NLDistanceType
impl UnwindSafe for NLDistanceType
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