pub struct SearchHit {
pub key: u64,
pub distance: f32,
}Expand description
One nearest-neighbor result. Lower distance is better.
Fields§
§key: u64Stable caller-provided vector key.
distance: f32Distance under the configured metric. Cosine is in 0.0..=2.0,
squared Euclidean is non-negative, and dot distance is the negative
inner product.
Trait Implementations§
impl Copy for SearchHit
impl StructuralPartialEq for SearchHit
Auto Trait Implementations§
impl Freeze for SearchHit
impl RefUnwindSafe for SearchHit
impl Send for SearchHit
impl Sync for SearchHit
impl Unpin for SearchHit
impl UnsafeUnpin for SearchHit
impl UnwindSafe for SearchHit
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