Struct libp2p::core::multiaddr::multihash::typenum::UTerm[]

pub struct UTerm;

The terminating type for UInt; it always comes after the most significant bit. UTerm by itself represents zero, which is aliased to U0.

Implementations

impl UTerm

pub fn new() -> UTerm

Instantiates a singleton representing this unsigned integer.

Trait Implementations

impl Add<B0> for UTerm

UTerm + B0 = UTerm

type Output = UTerm

The resulting type after applying the + operator.

impl Add<B1> for UTerm

UTerm + B1 = UInt<UTerm, B1>

type Output = UInt<UTerm, B1>

The resulting type after applying the + operator.

impl<U> Add<U> for UTerm where
    U: Unsigned

UTerm + U = U

type Output = U

The resulting type after applying the + operator.

impl<U, B> Add<UTerm> for UInt<U, B> where
    B: Bit,
    U: Unsigned

UInt<U, B> + UTerm = UInt<U, B>

type Output = UInt<U, B>

The resulting type after applying the + operator.

impl<T> ArrayLength<T> for UTerm

impl<T> ArrayLength<T> for UTerm

impl<Ur> BitAnd<Ur> for UTerm where
    Ur: Unsigned

0 & X = 0

type Output = UTerm

The resulting type after applying the & operator.

impl<U> BitOr<U> for UTerm where
    U: Unsigned

UTerm | X = X

type Output = U

The resulting type after applying the | operator.

impl<B, U> BitOr<UTerm> for UInt<U, B> where
    B: Bit,
    U: Unsigned

X | UTerm = X

type Output = UInt<U, B>

The resulting type after applying the | operator.

impl<Ur> BitXor<Ur> for UTerm where
    Ur: Unsigned

0 ^ X = X

type Output = Ur

The resulting type after applying the ^ operator.

impl Clone for UTerm

impl<U, B> Cmp<UInt<U, B>> for UTerm where
    B: Bit,
    U: Unsigned

Zero < Nonzero

type Output = Less

The result of the comparison. It should only ever be one of Greater, Less, or Equal.

impl<U, B> Cmp<UTerm> for UInt<U, B> where
    B: Bit,
    U: Unsigned

Nonzero > Zero

type Output = Greater

The result of the comparison. It should only ever be one of Greater, Less, or Equal.

impl Cmp<UTerm> for UTerm

Zero == Zero

type Output = Equal

The result of the comparison. It should only ever be one of Greater, Less, or Equal.

impl Copy for UTerm

impl Debug for UTerm

impl Default for UTerm

impl<Ur, Br> Div<UInt<Ur, Br>> for UTerm where
    Ur: Unsigned,
    Br: Bit

type Output = UTerm

The resulting type after applying the / operator.

impl Eq for UTerm

impl Gcd<UTerm> for UTerm

gcd(0, 0) = 0

type Output = UTerm

The greatest common divisor.

impl<X> Gcd<UTerm> for X where
    X: Unsigned + NonZero

gcd(x, 0) = x

type Output = X

The greatest common divisor.

impl<Y> Gcd<Y> for UTerm where
    Y: Unsigned + NonZero

gcd(0, y) = y

type Output = Y

The greatest common divisor.

impl<I> GetBit<I> for UTerm

type Output = B0

impl<Un, Bn> GetBit<UTerm> for UInt<Un, Bn> where
    Bn: Copy

type Output = Bn

impl Hash for UTerm

impl Len for UTerm

Length of UTerm by itself is 0

type Output = UTerm

The length as a type-level unsigned integer.

impl<U> Max<U> for UTerm where
    U: Unsigned

type Output = U

The type of the maximum of Self and Rhs

impl<U> Min<U> for UTerm where
    U: Unsigned

type Output = UTerm

The type of the minimum of Self and Rhs

impl Mul<B0> for UTerm

UTerm * B0 = UTerm

type Output = UTerm

The resulting type after applying the * operator.

impl Mul<B1> for UTerm

UTerm * B1 = UTerm

type Output = UTerm

The resulting type after applying the * operator.

impl<U> Mul<U> for UTerm where
    U: Unsigned

UTerm * U = UTerm

type Output = UTerm

The resulting type after applying the * operator.

impl<U, B> Mul<UTerm> for UInt<U, B> where
    B: Bit,
    U: Unsigned

UInt<U, B> * UTerm = UTerm

type Output = UTerm

The resulting type after applying the * operator.

impl Ord for UTerm

impl<Ur, Br> PartialDiv<UInt<Ur, Br>> for UTerm where
    Ur: Unsigned,
    Br: Bit

type Output = UTerm

The type of the result of the division

impl PartialEq<UTerm> for UTerm

impl PartialOrd<UTerm> for UTerm

impl Pow<UTerm> for f32

type Output = f32

The result of the exponentiation.

impl Pow<UTerm> for i32

type Output = i32

The result of the exponentiation.

impl Pow<UTerm> for i64

type Output = i64

The result of the exponentiation.

impl Pow<UTerm> for u64

type Output = u64

The result of the exponentiation.

impl Pow<UTerm> for u32

type Output = u32

The result of the exponentiation.

impl Pow<UTerm> for i16

type Output = i16

The result of the exponentiation.

impl Pow<UTerm> for u8

type Output = u8

The result of the exponentiation.

impl Pow<UTerm> for f64

type Output = f64

The result of the exponentiation.

impl Pow<UTerm> for isize

type Output = isize

The result of the exponentiation.

impl Pow<UTerm> for i8

type Output = i8

The result of the exponentiation.

impl Pow<UTerm> for u16

type Output = u16

The result of the exponentiation.

impl Pow<UTerm> for usize

type Output = usize

The result of the exponentiation.

impl<Ur, Br> Rem<UInt<Ur, Br>> for UTerm where
    Ur: Unsigned,
    Br: Bit

type Output = UTerm

The resulting type after applying the % operator.

impl Shl<B0> for UTerm

Shifting UTerm by a 0 bit: UTerm << B0 = UTerm

type Output = UTerm

The resulting type after applying the << operator.

impl Shl<B1> for UTerm

Shifting UTerm by a 1 bit: UTerm << B1 = UTerm

type Output = UTerm

The resulting type after applying the << operator.

impl<U> Shl<U> for UTerm where
    U: Unsigned

Shifting left UTerm by an unsigned integer: UTerm << U = UTerm

type Output = UTerm

The resulting type after applying the << operator.

impl<U, B> Shl<UTerm> for UInt<U, B> where
    B: Bit,
    U: Unsigned

Shifting left UInt by UTerm: UInt<U, B> << UTerm = UInt<U, B>

type Output = UInt<U, B>

The resulting type after applying the << operator.

impl Shr<B0> for UTerm

Shifting right UTerm by a 0 bit: UTerm >> B0 = UTerm

type Output = UTerm

The resulting type after applying the >> operator.

impl Shr<B1> for UTerm

Shifting right UTerm by a 1 bit: UTerm >> B1 = UTerm

type Output = UTerm

The resulting type after applying the >> operator.

impl<U> Shr<U> for UTerm where
    U: Unsigned

Shifting right a UTerm by an unsigned integer: UTerm >> U = UTerm

type Output = UTerm

The resulting type after applying the >> operator.

impl<U, B> Shr<UTerm> for UInt<U, B> where
    B: Bit,
    U: Unsigned

Shifting right UInt by UTerm: UInt<U, B> >> UTerm = UInt<U, B>

type Output = UInt<U, B>

The resulting type after applying the >> operator.

impl StructuralEq for UTerm

impl StructuralPartialEq for UTerm

impl Sub<B0> for UTerm

UTerm - B0 = Term

type Output = UTerm

The resulting type after applying the - operator.

impl Sub<UTerm> for UTerm

UTerm - UTerm = UTerm

type Output = UTerm

The resulting type after applying the - operator.

impl Unsigned for UTerm

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash

impl<T> From<T> for T[src]

impl<X> Gcd<UTerm> for X where
    X: Unsigned + NonZero

type Output = X

The greatest common divisor.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<X, N> Pow<N> for X where
    N: Unsigned,
    X: Unsigned + PrivatePow<UInt<UTerm, B1>, N>, 

type Output = <X as PrivatePow<UInt<UTerm, B1>, N>>::Output

The result of the exponentiation.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<N, I, B> SetBit<I, B> for N where
    N: PrivateSetBit<I, B>,
    <N as PrivateSetBit<I, B>>::Output: Trim, 

type Output = <<N as PrivateSetBit<I, B>>::Output as Trim>::Output

impl<T> Size for T where
    T: 'static + Eq + Default + Send + Sync + Debug + Hash + ArrayLength<u8>, 

impl<N> SquareRoot for N where
    N: PrivateSquareRoot, 

type Output = <N as PrivateSquareRoot>::Output

The result of the integer square root.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,