Struct acap::knn::Neighbor [−][src]
pub struct Neighbor<V, D> {
pub item: V,
pub distance: D,
}
Expand description
A nearest neighbor.
Fields
item: V
The neighbor itself.
distance: D
The distance from the target to this neighbor.
Implementations
Trait Implementations
Auto Trait Implementations
impl<V, D> RefUnwindSafe for Neighbor<V, D> where
D: RefUnwindSafe,
V: RefUnwindSafe,
impl<V, D> UnwindSafe for Neighbor<V, D> where
D: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more