Struct hypernonsense::multiindex::DistanceNode
source · pub struct DistanceNode<K: Eq + Hash> {
pub key: K,
pub distance: f32,
}
Fields§
§key: K
§distance: f32
Trait Implementations§
source§impl<K: Eq + Hash> Ord for DistanceNode<K>
impl<K: Eq + Hash> Ord for DistanceNode<K>
source§impl<K: Eq + Hash> PartialEq<DistanceNode<K>> for DistanceNode<K>
impl<K: Eq + Hash> PartialEq<DistanceNode<K>> for DistanceNode<K>
source§impl<K: Eq + Hash> PartialOrd<DistanceNode<K>> for DistanceNode<K>
impl<K: Eq + Hash> PartialOrd<DistanceNode<K>> for DistanceNode<K>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more