Struct libp2p_kad::kbucket::Distance
source · pub struct Distance(_);
Expand description
A distance between two keys in the DHT keyspace.
Implementations§
Trait Implementations§
source§impl Ord for Distance
impl Ord for Distance
source§impl PartialEq<Distance> for Distance
impl PartialEq<Distance> for Distance
source§impl PartialOrd<Distance> for Distance
impl PartialOrd<Distance> for Distance
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