pub struct GlobalHit {
pub segment_id: SegmentId,
pub doc_id: DocId,
pub distance: f32,
}Expand description
Result of a global kNN search: which segment owns the hit, the per-segment doc_id, and the raw HNSW distance.
Fields§
§segment_id: SegmentId§doc_id: DocId§distance: f32Trait Implementations§
Auto Trait Implementations§
impl Freeze for GlobalHit
impl RefUnwindSafe for GlobalHit
impl Send for GlobalHit
impl Sync for GlobalHit
impl Unpin for GlobalHit
impl UnsafeUnpin for GlobalHit
impl UnwindSafe for GlobalHit
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more