pub struct Neighbor {
pub id: PointId,
pub distance: f32,
}Expand description
A search result: a point ID paired with its distance from the query.
Ordering is by distance (smaller = closer); ties broken by id for
determinism.
Fields§
§id: PointIdThe point’s stable ID.
distance: f32Distance from query, as returned by the metric.
Trait Implementations§
Source§impl Ord for Neighbor
impl Ord for Neighbor
Source§impl PartialOrd for Neighbor
impl PartialOrd for Neighbor
impl Copy for Neighbor
impl Eq for Neighbor
impl StructuralPartialEq for Neighbor
Auto Trait Implementations§
impl Freeze for Neighbor
impl RefUnwindSafe for Neighbor
impl Send for Neighbor
impl Sync for Neighbor
impl Unpin for Neighbor
impl UnsafeUnpin for Neighbor
impl UnwindSafe for Neighbor
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