Struct instant_distance::Hnsw [−][src]
pub struct Hnsw<P> { /* fields omitted */ }
Implementations
impl<P> Hnsw<P> where
P: Point,
[src]
impl<P> Hnsw<P> where
P: Point,
[src]pub fn builder() -> Builder
[src]
pub fn search<'a, 'b: 'a>(
&'b self,
point: &P,
search: &'a mut Search
) -> impl Iterator<Item = Item<'b, P>> + ExactSizeIterator + 'a
[src]
pub fn search<'a, 'b: 'a>(
&'b self,
point: &P,
search: &'a mut Search
) -> impl Iterator<Item = Item<'b, P>> + 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.
Trait Implementations
Auto Trait Implementations
impl<P> RefUnwindSafe for Hnsw<P> where
P: RefUnwindSafe,
P: RefUnwindSafe,
impl<P> Send for Hnsw<P> where
P: Send,
P: Send,
impl<P> Sync for Hnsw<P> where
P: Sync,
P: Sync,
impl<P> Unpin for Hnsw<P> where
P: Unpin,
P: Unpin,
impl<P> UnwindSafe for Hnsw<P> where
P: UnwindSafe,
P: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,