Struct flechasdb::db::build::QueryResult
source · pub struct QueryResult<T> {
pub partition_index: usize,
pub vector_id: Uuid,
pub vector_index: usize,
pub squared_distance: T,
}Expand description
Query result.
Fields§
§partition_index: usizePartition index.
vector_id: UuidVector ID. Must be unique across the database.
vector_index: usizeVector index. Local index in the partition.
squared_distance: TApproximate squared distance.
Trait Implementations§
source§impl<T: Clone> Clone for QueryResult<T>
impl<T: Clone> Clone for QueryResult<T>
source§fn clone(&self) -> QueryResult<T>
fn clone(&self) -> QueryResult<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> RefUnwindSafe for QueryResult<T>where T: RefUnwindSafe,
impl<T> Send for QueryResult<T>where T: Send,
impl<T> Sync for QueryResult<T>where T: Sync,
impl<T> Unpin for QueryResult<T>where T: Unpin,
impl<T> UnwindSafe for QueryResult<T>where T: 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