Enum kitsune_p2p_dht_arc::ArcInterval [−][src]
pub enum ArcInterval<T = DhtLocation> {
Empty,
Full,
Bounded(T, T),
}
Expand description
An alternate implementation of ArcRange
Variants
Implementations
Shift the bounds so that an integer half-length is achieved. Always increase the half-length, so that the resulting quantized interval is a superset of the original
Represent an arc as an optional range of inclusive endpoints. If none, the arc length is 0
Same as primitive_range, but with the return type “inside-out”
Amount of intersection between two arcs
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<T> RefUnwindSafe for ArcInterval<T> where
T: RefUnwindSafe,
impl<T> Send for ArcInterval<T> where
T: Send,
impl<T> Sync for ArcInterval<T> where
T: Sync,
impl<T> Unpin for ArcInterval<T> where
T: Unpin,
impl<T> UnwindSafe for ArcInterval<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more