Struct libp2p::core::multiaddr::multihash::typenum::UTerm [−]
pub struct UTerm;
Expand description
The terminating type for UInt
; it always comes after the most significant
bit. UTerm
by itself represents zero, which is aliased to U0
.
Implementations
Trait Implementations
UTerm + B0 = UTerm
UTerm + B1 = UInt<UTerm, B1>
UTerm + U = U
UInt<U, B> + UTerm = UInt<U, B>
impl<T> ArrayLength<T> for UTerm
impl<T> ArrayLength<T> for UTerm
type ArrayType
type ArrayType
Associated type representing the array type for the number
0 & X = 0
UTerm | X = X
X | UTerm = X
0 ^ X = X
Zero < Nonzero
Nonzero > Zero
Zero == Zero
Length of UTerm
by itself is 0
UTerm * B0 = UTerm
UTerm * B1 = UTerm
UTerm * U = UTerm
UInt<U, B> * UTerm = UTerm
impl<Ur, Br> PartialDiv<UInt<Ur, Br>> for UTerm where
Ur: Unsigned,
Br: Bit,
impl<Ur, Br> PartialDiv<UInt<Ur, Br>> for UTerm where
Ur: Unsigned,
Br: Bit,
pub fn partial_div(
self,
UInt<Ur, Br>
) -> <UTerm as PartialDiv<UInt<Ur, Br>>>::Output
pub fn partial_div(
self,
UInt<Ur, Br>
) -> <UTerm as PartialDiv<UInt<Ur, Br>>>::Output
Method for performing the division
impl PartialOrd<UTerm> for UTerm
impl PartialOrd<UTerm> for UTerm
pub fn partial_cmp(&self, other: &UTerm) -> Option<Ordering>
pub fn partial_cmp(&self, other: &UTerm) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Shifting UTerm
by a 0 bit: UTerm << B0 = UTerm
Shifting UTerm
by a 1 bit: UTerm << B1 = UTerm
Shifting left UTerm
by an unsigned integer: UTerm << U = UTerm
Shifting left UInt
by UTerm
: UInt<U, B> << UTerm = UInt<U, B>
Shifting right UTerm
by a 0 bit: UTerm >> B0 = UTerm
Shifting right UTerm
by a 1 bit: UTerm >> B1 = UTerm
Shifting right a UTerm
by an unsigned integer: UTerm >> U = UTerm
Shifting right UInt
by UTerm
: UInt<U, B> >> UTerm = UInt<U, B>
UTerm - B0 = Term
UTerm - UTerm = UTerm
impl StructuralEq for UTerm
impl StructuralPartialEq for UTerm
Auto Trait Implementations
impl RefUnwindSafe for UTerm
impl UnwindSafe for UTerm
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash,
impl<N, I, B> SetBit<I, B> for N where
N: PrivateSetBit<I, B>,
<N as PrivateSetBit<I, B>>::Output: Trim,
impl<N, I, B> SetBit<I, B> for N where
N: PrivateSetBit<I, B>,
<N as PrivateSetBit<I, B>>::Output: Trim,
impl<N> SquareRoot for N where
N: PrivateSquareRoot,
impl<N> SquareRoot for N where
N: PrivateSquareRoot,
type Output = <N as PrivateSquareRoot>::Output
type Output = <N as PrivateSquareRoot>::Output
The result of the integer square root.
pub fn vzip(self) -> V