pub enum DistanceMetric {
Euclidean,
Cosine,
DotProduct,
Manhattan,
}Variants§
Trait Implementations§
Source§impl Clone for DistanceMetric
impl Clone for DistanceMetric
Source§fn clone(&self) -> DistanceMetric
fn clone(&self) -> DistanceMetric
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 From<DistanceMetric> for DistanceMetric
impl From<DistanceMetric> for DistanceMetric
Source§fn from(metric: DistanceMetric) -> Self
fn from(metric: DistanceMetric) -> Self
Converts to this type from the input type.
Source§impl From<DistanceMetric> for JsValue
impl From<DistanceMetric> for JsValue
Source§fn from(value: DistanceMetric) -> Self
fn from(value: DistanceMetric) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for DistanceMetric
impl FromWasmAbi for DistanceMetric
Source§impl IntoWasmAbi for DistanceMetric
impl IntoWasmAbi for DistanceMetric
Source§impl OptionFromWasmAbi for DistanceMetric
impl OptionFromWasmAbi for DistanceMetric
Source§impl OptionIntoWasmAbi for DistanceMetric
impl OptionIntoWasmAbi for DistanceMetric
Source§impl TryFromJsValue for DistanceMetric
impl TryFromJsValue for DistanceMetric
Source§impl VectorFromWasmAbi for DistanceMetric
impl VectorFromWasmAbi for DistanceMetric
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[DistanceMetric]>
Source§impl VectorIntoWasmAbi for DistanceMetric
impl VectorIntoWasmAbi for DistanceMetric
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[DistanceMetric]>) -> Self::Abi
Source§impl WasmDescribeVector for DistanceMetric
impl WasmDescribeVector for DistanceMetric
impl Copy for DistanceMetric
Auto Trait Implementations§
impl Freeze for DistanceMetric
impl RefUnwindSafe for DistanceMetric
impl Send for DistanceMetric
impl Sync for DistanceMetric
impl Unpin for DistanceMetric
impl UnsafeUnpin for DistanceMetric
impl UnwindSafe for DistanceMetric
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.