pub struct SignRandomProjections<N: Numeric> { /* private fields */ }Expand description
A family of hashers for the cosine similarity.
Implementations§
Trait Implementations§
Source§impl<N: Clone + Numeric> Clone for SignRandomProjections<N>
impl<N: Clone + Numeric> Clone for SignRandomProjections<N>
Source§fn clone(&self) -> SignRandomProjections<N>
fn clone(&self) -> SignRandomProjections<N>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de, N> Deserialize<'de> for SignRandomProjections<N>where
N: Deserialize<'de> + Numeric,
impl<'de, N> Deserialize<'de> for SignRandomProjections<N>where
N: Deserialize<'de> + Numeric,
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<N> Serialize for SignRandomProjections<N>
impl<N> Serialize for SignRandomProjections<N>
Source§impl<N> StepWiseProbe<N, i8> for SignRandomProjections<N>where
N: Numeric,
impl<N> StepWiseProbe<N, i8> for SignRandomProjections<N>where
N: Numeric,
Source§impl<N: Numeric> VecHash<N, i8> for SignRandomProjections<N>
impl<N: Numeric> VecHash<N, i8> for SignRandomProjections<N>
Source§fn as_step_wise_probe(&self) -> Option<&dyn StepWiseProbe<N, i8>>
fn as_step_wise_probe(&self) -> Option<&dyn StepWiseProbe<N, i8>>
If the hasher implements the StepWiseProbe trait it should return Some(self)
Source§fn hash_vec_put(&self, v: &[N]) -> Vec<K>
fn hash_vec_put(&self, v: &[N]) -> Vec<K>
Create a hash for a data point that is being stored.
Source§fn as_query_directed_probe(&self) -> Option<&dyn QueryDirectedProbe<N, K>>
fn as_query_directed_probe(&self) -> Option<&dyn QueryDirectedProbe<N, K>>
If the hasher implements the QueryDirectedProbe trait it should return Some(self)
Auto Trait Implementations§
impl<N> Freeze for SignRandomProjections<N>
impl<N> RefUnwindSafe for SignRandomProjections<N>where
N: RefUnwindSafe,
impl<N> Send for SignRandomProjections<N>
impl<N> Sync for SignRandomProjections<N>
impl<N> Unpin for SignRandomProjections<N>
impl<N> UnsafeUnpin for SignRandomProjections<N>
impl<N> UnwindSafe for SignRandomProjections<N>where
N: RefUnwindSafe,
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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 more