Struct kitsune_p2p_dht_arc::DhtLocation
source · [−]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> = Self(usize::MIN)
pub const MAX: Wrapping<usize> = Self(usize::MAX)
pub const BITS: u32 = 64u32
pub const MIN: Wrapping<u8> = Self(u8::MIN)
pub const MAX: Wrapping<u8> = Self(u8::MAX)
pub const BITS: u32 = 8u32
pub const MIN: Wrapping<u16> = Self(u16::MIN)
pub const MAX: Wrapping<u16> = Self(u16::MAX)
pub const BITS: u32 = 16u32
pub const MIN: Wrapping<u32> = Self(u32::MIN)
pub const MAX: Wrapping<u32> = Self(u32::MAX)
pub const BITS: u32 = 32u32
pub const MIN: Wrapping<u64> = Self(u64::MIN)
pub const MAX: Wrapping<u64> = Self(u64::MAX)
pub const BITS: u32 = 64u32
pub const MIN: Wrapping<u128> = Self(u128::MIN)
pub const MAX: Wrapping<u128> = Self(u128::MAX)
pub const BITS: u32 = 128u32
pub const MIN: Wrapping<isize> = Self(isize::MIN)
pub const MAX: Wrapping<isize> = Self(isize::MAX)
pub const BITS: u32 = 64u32
pub const MIN: Wrapping<i8> = Self(i8::MIN)
pub const MAX: Wrapping<i8> = Self(i8::MAX)
pub const BITS: u32 = 8u32
pub const MIN: Wrapping<i16> = Self(i16::MIN)
pub const MAX: Wrapping<i16> = Self(i16::MAX)
pub const BITS: u32 = 16u32
pub const MIN: Wrapping<i32> = Self(i32::MIN)
pub const MAX: Wrapping<i32> = Self(i32::MAX)
pub const BITS: u32 = 32u32
Trait Implementations
sourceimpl Add<DhtLocation> for DhtLocation
impl Add<DhtLocation> for DhtLocation
sourceimpl AsPrimitive<u32> for DhtLocation
impl AsPrimitive<u32> for DhtLocation
sourceimpl AsRef<Wrapping<u32>> for DhtLocation
impl AsRef<Wrapping<u32>> for DhtLocation
sourceimpl Clone for DhtLocation
impl Clone for DhtLocation
sourcefn clone(&self) -> DhtLocation
fn clone(&self) -> DhtLocation
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DhtLocation
impl Debug for DhtLocation
sourceimpl Deref for DhtLocation
impl Deref for DhtLocation
sourceimpl<'de> Deserialize<'de> for DhtLocation
impl<'de> Deserialize<'de> for DhtLocation
sourcefn 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
sourceimpl Display for DhtLocation
impl Display for DhtLocation
sourceimpl Div<DhtLocation> for DhtLocation
impl Div<DhtLocation> for DhtLocation
sourceimpl From<DhtLocation> for Wrapping<u32>
impl From<DhtLocation> for Wrapping<u32>
sourcefn from(original: DhtLocation) -> Self
fn from(original: DhtLocation) -> Self
Converts to this type from the input type.
sourceimpl From<DhtLocation> for u32
impl From<DhtLocation> for u32
sourcefn from(l: DhtLocation) -> Self
fn from(l: DhtLocation) -> Self
Converts to this type from the input type.
sourceimpl From<Wrapping<u32>> for DhtLocation
impl From<Wrapping<u32>> for DhtLocation
sourcefn from(original: Wrapping<u32>) -> DhtLocation
fn from(original: Wrapping<u32>) -> DhtLocation
Converts to this type from the input type.
sourceimpl From<u32> for DhtLocation
impl From<u32> for DhtLocation
sourceimpl Hash for DhtLocation
impl Hash for DhtLocation
sourceimpl Mul<DhtLocation> for DhtLocation
impl Mul<DhtLocation> for DhtLocation
sourceimpl Num for DhtLocation
impl Num for DhtLocation
type FromStrRadixErr = <u32 as Num>::FromStrRadixErr
sourcefn 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 more
sourceimpl One for DhtLocation
impl One for DhtLocation
sourceimpl Ord for DhtLocation
impl Ord for DhtLocation
sourceimpl PartialEq<DhtLocation> for DhtLocation
impl PartialEq<DhtLocation> for DhtLocation
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &DhtLocation) -> bool
fn ne(&self, other: &DhtLocation) -> bool
This method tests for !=
.
sourceimpl PartialOrd<DhtLocation> for DhtLocation
impl PartialOrd<DhtLocation> for DhtLocation
sourcefn partial_cmp(&self, other: &DhtLocation) -> Option<Ordering>
fn partial_cmp(&self, other: &DhtLocation) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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
sourceimpl Rem<DhtLocation> for DhtLocation
impl Rem<DhtLocation> for DhtLocation
sourceimpl Serialize for DhtLocation
impl Serialize for DhtLocation
sourceimpl Sub<DhtLocation> for DhtLocation
impl Sub<DhtLocation> for DhtLocation
sourceimpl Width for DhtLocation
impl Width for DhtLocation
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more