pub struct InnerProduct;Expand description
Inner product distance: -(a . b).
Negated so that higher inner product = lower distance.
Trait Implementations§
Source§impl Clone for InnerProduct
impl Clone for InnerProduct
Source§fn clone(&self) -> InnerProduct
fn clone(&self) -> InnerProduct
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 InnerProduct
impl Debug for InnerProduct
Source§impl Default for InnerProduct
impl Default for InnerProduct
Source§fn default() -> InnerProduct
fn default() -> InnerProduct
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InnerProduct
impl<'de> Deserialize<'de> for InnerProduct
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<S: Scalar> DistanceMetric<S> for InnerProduct
impl<S: Scalar> DistanceMetric<S> for InnerProduct
Auto Trait Implementations§
impl Freeze for InnerProduct
impl RefUnwindSafe for InnerProduct
impl Send for InnerProduct
impl Sync for InnerProduct
impl Unpin for InnerProduct
impl UnsafeUnpin for InnerProduct
impl UnwindSafe for InnerProduct
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> KeyDe for Twhere
T: DeserializeOwned,
impl<T> KeyDe for Twhere
T: DeserializeOwned,
Source§impl<T> KeyEn for Twhere
T: Serialize,
impl<T> KeyEn for Twhere
T: Serialize,
Source§fn try_encode_key(&self) -> Result<Vec<u8>, Box<dyn RucError>>
fn try_encode_key(&self) -> Result<Vec<u8>, Box<dyn RucError>>
Attempts to encode the key. Returns
Err only if the
Serialize implementation is broken — see module-level trust
model for details.Source§fn encode_key(&self) -> RawBytes
fn encode_key(&self) -> RawBytes
Encodes the key, panicking on failure. Read more