Struct kitsune_p2p_dht_arc::DhtLocation
source · pub struct DhtLocation(pub Wrapping<u32>);
Expand description
Type for representing a location that can wrap around a u32 dht arc
Tuple Fields§
§0: Wrapping<u32>
Implementations§
Methods from Deref<Target = Wrapping<u32>>§
pub const MIN: Wrapping<usize> = _
pub const MAX: Wrapping<usize> = _
pub const BITS: u32 = 64u32
pub const MIN: Wrapping<u8> = _
pub const MAX: Wrapping<u8> = _
pub const BITS: u32 = 8u32
pub const MIN: Wrapping<u16> = _
pub const MAX: Wrapping<u16> = _
pub const BITS: u32 = 16u32
pub const MIN: Wrapping<u32> = _
pub const MAX: Wrapping<u32> = _
pub const BITS: u32 = 32u32
pub const MIN: Wrapping<u64> = _
pub const MAX: Wrapping<u64> = _
pub const BITS: u32 = 64u32
pub const MIN: Wrapping<u128> = _
pub const MAX: Wrapping<u128> = _
pub const BITS: u32 = 128u32
pub const MIN: Wrapping<isize> = _
pub const MAX: Wrapping<isize> = _
pub const BITS: u32 = 64u32
pub const MIN: Wrapping<i8> = _
pub const MAX: Wrapping<i8> = _
pub const BITS: u32 = 8u32
pub const MIN: Wrapping<i16> = _
pub const MAX: Wrapping<i16> = _
pub const BITS: u32 = 16u32
pub const MIN: Wrapping<i32> = _
pub const MAX: Wrapping<i32> = _
pub const BITS: u32 = 32u32
pub const MIN: Wrapping<i64> = _
pub const MAX: Wrapping<i64> = _
pub const BITS: u32 = 64u32
pub const MIN: Wrapping<i128> = _
pub const MAX: Wrapping<i128> = _
pub const BITS: u32 = 128u32
Trait Implementations§
source§impl Add for DhtLocation
impl Add for DhtLocation
source§impl AsPrimitive<u32> for DhtLocation
impl AsPrimitive<u32> for DhtLocation
source§impl Clone for DhtLocation
impl Clone for DhtLocation
source§fn clone(&self) -> DhtLocation
fn clone(&self) -> DhtLocation
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DhtLocation
impl Debug for DhtLocation
source§impl Deref for DhtLocation
impl Deref for DhtLocation
source§impl<'de> Deserialize<'de> for DhtLocation
impl<'de> Deserialize<'de> for DhtLocation
source§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
source§impl Display for DhtLocation
impl Display for DhtLocation
source§impl Div for DhtLocation
impl Div for DhtLocation
source§impl From<DhtLocation> for Wrapping<u32>
impl From<DhtLocation> for Wrapping<u32>
source§fn from(original: DhtLocation) -> Self
fn from(original: DhtLocation) -> Self
Converts to this type from the input type.
source§impl From<DhtLocation> for u32
impl From<DhtLocation> for u32
source§fn from(l: DhtLocation) -> Self
fn from(l: DhtLocation) -> Self
Converts to this type from the input type.
source§impl From<u32> for DhtLocation
impl From<u32> for DhtLocation
source§impl Hash for DhtLocation
impl Hash for DhtLocation
source§impl Mul for DhtLocation
impl Mul for DhtLocation
source§impl Num for DhtLocation
impl Num for DhtLocation
type FromStrRadixErr = <u32 as Num>::FromStrRadixErr
source§fn from_str_radix(str: &str, radix: u32) -> Result<Self, Self::FromStrRadixErr>
fn from_str_radix(str: &str, radix: u32) -> Result<Self, Self::FromStrRadixErr>
Convert from a string and radix (typically
2..=36
). Read moresource§impl One for DhtLocation
impl One for DhtLocation
source§impl Ord for DhtLocation
impl Ord for DhtLocation
source§fn cmp(&self, other: &DhtLocation) -> Ordering
fn cmp(&self, other: &DhtLocation) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for DhtLocation
impl PartialEq for DhtLocation
source§fn eq(&self, other: &DhtLocation) -> bool
fn eq(&self, other: &DhtLocation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DhtLocation
impl PartialOrd for DhtLocation
source§fn partial_cmp(&self, other: &DhtLocation) -> Option<Ordering>
fn partial_cmp(&self, other: &DhtLocation) -> Option<Ordering>
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 moresource§impl Rem for DhtLocation
impl Rem for DhtLocation
source§impl Serialize for DhtLocation
impl Serialize for DhtLocation
source§impl Sub for DhtLocation
impl Sub for DhtLocation
source§impl Width for DhtLocation
impl Width for DhtLocation
source§impl Zero for DhtLocation
impl Zero for DhtLocation
impl Copy for DhtLocation
impl Eq for DhtLocation
impl StructuralEq for DhtLocation
impl StructuralPartialEq for DhtLocation
Auto Trait Implementations§
impl RefUnwindSafe for DhtLocation
impl Send for DhtLocation
impl Sync for DhtLocation
impl Unpin for DhtLocation
impl UnwindSafe for DhtLocation
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