Struct instant_distance::Hnsw [−][src]
Implementations
impl<P> Hnsw<P> where
P: Point,
[src]
P: Point,
pub fn builder() -> Builder
[src]
pub fn search<'a>(
&self,
point: &P,
search: &'a mut Search
) -> impl Iterator<Item = PointId> + ExactSizeIterator + 'a
[src]
&self,
point: &P,
search: &'a mut Search
) -> impl Iterator<Item = PointId> + 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.
pub fn iter(&self) -> impl Iterator<Item = (PointId, &P)>
[src]
Iterate over the keys and values in this index
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,