Struct instant_distance::Hnsw
source · pub struct Hnsw<P> { /* private fields */ }
Implementations§
source§impl<P> Hnsw<P>where
P: Point,
impl<P> Hnsw<P>where P: Point,
pub fn builder() -> Builder
sourcepub fn search<'a, 'b: 'a>(
&'b self,
point: &P,
search: &'a mut Search
) -> impl Iterator<Item = Item<'b, P>> + ExactSizeIterator + 'a
pub fn search<'a, 'b: 'a>( &'b self, point: &P, search: &'a mut Search ) -> impl Iterator<Item = Item<'b, P>> + ExactSizeIterator + 'a
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,
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§
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