Struct libp2p_kad::KBucketDistance
source · pub struct KBucketDistance(/* private fields */);
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 for Distance
impl PartialEq for Distance
source§impl PartialOrd for Distance
impl PartialOrd 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 moreimpl Copy for Distance
impl Eq for Distance
impl StructuralEq for Distance
impl StructuralPartialEq for Distance
Auto Trait Implementations§
impl RefUnwindSafe for Distance
impl Send for Distance
impl Sync for Distance
impl Unpin for Distance
impl UnwindSafe for Distance
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