pub struct Reference<V> { /* private fields */ }Expand description
The reference: the plainest possible scan, which every other variant is checked against.
It compares every record with every query using Value::distance, one record at a time, with
no tiling, no unrolling and no instruction set beyond the build target’s.
Implementations§
Trait Implementations§
Source§impl<V: Value> Search<V> for Reference<V>
impl<V: Value> Search<V> for Reference<V>
Source§fn variant(&self) -> String
fn variant(&self) -> String
A short name for reports, such as
scan/avx512 or multi-index/4x16.Source§fn id(&self, position: usize) -> Option<u64>
fn id(&self, position: usize) -> Option<u64>
The id of the record at
position, if the records carry ids. Read moreSource§fn collect(
&self,
queries: &[V],
radius: u32,
share: Share,
stop: &Stop,
out: &mut [HitList<'_>],
) -> bool
fn collect( &self, queries: &[V], radius: u32, share: Share, stop: &Stop, out: &mut [HitList<'_>], ) -> bool
Source§fn plan(
&self,
queries: &[V],
radius: u32,
threads: usize,
stop: &Stop,
) -> Planning
fn plan( &self, queries: &[V], radius: u32, threads: usize, stop: &Stop, ) -> Planning
Decide how to answer each of
queries within radius, and on how many of the threads
given, at least 1. search_batch calls it once a call, before any collect, hands each
query’s plan to collect on its HitList, and reports it in Found::plan. Read moreAuto Trait Implementations§
impl<V> Forget for Reference<V>
impl<V> Freeze for Reference<V>
impl<V> Move for Reference<V>
impl<V> RefUnwindSafe for Reference<V>
impl<V> Send for Reference<V>
impl<V> Sync for Reference<V>
impl<V> Unpin for Reference<V>
impl<V> UnsafeUnpin for Reference<V>where
*const ArcInner<Records<V>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Records<V>>>: UnsafeUnpin,
impl<V> UnwindSafe for Reference<V>
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