pub struct Candidate {
pub entity_id: EntityId,
pub distance: f32,
}Expand description
A candidate during HNSW search.
Used in the priority queue for greedy search.
Fields§
§entity_id: EntityIdThe entity ID of this candidate.
distance: f32The distance to the query.
Implementations§
Trait Implementations§
Source§impl Ord for Candidate
impl Ord for Candidate
Source§impl PartialOrd for Candidate
impl PartialOrd for Candidate
impl Copy for Candidate
impl Eq for Candidate
Auto Trait Implementations§
impl Freeze for Candidate
impl RefUnwindSafe for Candidate
impl Send for Candidate
impl Sync for Candidate
impl Unpin for Candidate
impl UnwindSafe for Candidate
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