[][src]Struct cosine_lsh::CosineLSH

pub struct CosineLSH<T> { /* fields omitted */ }

Methods

impl<T> CosineLSH<T> where
    T: Clone + Copy
[src]

pub fn new(dim: i64, l: i64, m: i64) -> Self[src]

pub fn insert(&mut self, point: Vec<f64>, extra_data: T) -> Option<()>[src]

pub fn query(
    &self,
    q: Vec<f64>,
    max_result: usize
) -> Option<Vec<QueryResult<T>>>
[src]

Auto Trait Implementations

impl<T> Sync for CosineLSH<T> where
    T: Sync

impl<T> Send for CosineLSH<T> where
    T: Send

impl<T> Unpin for CosineLSH<T> where
    T: Unpin

impl<T> RefUnwindSafe for CosineLSH<T> where
    T: RefUnwindSafe

impl<T> UnwindSafe for CosineLSH<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]