Struct instant_distance::Hnsw[][src]

pub struct Hnsw<P> { /* fields omitted */ }

Implementations

impl<P> Hnsw<P> where
    P: Point
[src]

pub fn builder() -> Builder[src]

pub fn search<'a>(
    &self,
    point: &P,
    search: &'a mut Search
) -> impl Iterator<Item = PointId> + ExactSizeIterator + 'a
[src]

Search the index for the points nearest to the reference point point

The results are returned in the out parameter; the number of neighbors to search for is limited by the size of the out parameter, and the number of results found is returned in the return value.

pub fn iter(&self) -> impl Iterator<Item = (PointId, &P)>[src]

Iterate over the keys and values in this index

Trait Implementations

impl<P> Index<PointId> for Hnsw<P>[src]

type Output = P

The returned type after indexing.

Auto Trait Implementations

impl<P> RefUnwindSafe for Hnsw<P> where
    P: RefUnwindSafe

impl<P> Send for Hnsw<P> where
    P: Send

impl<P> Sync for Hnsw<P> where
    P: Sync

impl<P> Unpin for Hnsw<P> where
    P: Unpin

impl<P> UnwindSafe for Hnsw<P> where
    P: UnwindSafe

Blanket Implementations

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

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

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

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

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

impl<T> Pointable for T

type Init = T

The type for initializers.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,