Struct libipld::cid::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

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.

pub fn add(self, B0) -> <UTerm as Add<B0>>::Output

Performs the + operation. Read more

impl Add<B1> for UTerm

UTerm + B1 = UInt<UTerm, B1>

type Output = UInt<UTerm, B1>

The resulting type after applying the + operator.

pub fn add(self, B1) -> <UTerm as Add<B1>>::Output

Performs the + operation. Read more

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

UTerm + U = U

type Output = U

The resulting type after applying the + operator.

pub fn add(self, rhs: U) -> <UTerm as Add<U>>::Output

Performs the + operation. Read more

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

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

type Output = UInt<U, B>

The resulting type after applying the + operator.

pub fn add(self, UTerm) -> <UInt<U, B> as Add<UTerm>>::Output

Performs the + operation. Read more

impl<T> ArrayLength<T> for UTerm

type ArrayType

Associated type representing the array type for the number

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

0 & X = 0

type Output = UTerm

The resulting type after applying the & operator.

pub fn bitand(self, Ur) -> <UTerm as BitAnd<Ur>>::Output

Performs the & operation. Read more

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

UTerm | X = X

type Output = U

The resulting type after applying the | operator.

pub fn bitor(self, rhs: U) -> <UTerm as BitOr<U>>::Output

Performs the | operation. Read more

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

X | UTerm = X

type Output = UInt<U, B>

The resulting type after applying the | operator.

pub fn bitor(self, UTerm) -> <UInt<U, B> as BitOr<UTerm>>::Output

Performs the | operation. Read more

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

0 ^ X = X

type Output = Ur

The resulting type after applying the ^ operator.

pub fn bitxor(self, rhs: Ur) -> <UTerm as BitXor<Ur>>::Output

Performs the ^ operation. Read more

impl Clone for UTerm

pub fn clone(&self) -> UTerm

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

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

Zero < Nonzero

type Output = Less

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

pub fn compare<IM>(&self, &UInt<U, B>) -> <UTerm as Cmp<UInt<U, B>>>::Output where
    IM: InternalMarker, 

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

Nonzero > Zero

type Output = Greater

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

pub fn compare<IM>(&self, &UTerm) -> <UInt<U, B> as Cmp<UTerm>>::Output where
    IM: InternalMarker, 

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.

pub fn compare<IM>(&self, &UTerm) -> <UTerm as Cmp<UTerm>>::Output where
    IM: InternalMarker, 

impl Debug for UTerm

pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

impl Default for UTerm

pub fn default() -> UTerm

Returns the “default value” for a type. Read more

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

type Output = UTerm

The resulting type after applying the / operator.

pub fn div(self, UInt<Ur, Br>) -> <UTerm as Div<UInt<Ur, Br>>>::Output

Performs the / operation. Read more

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

pub fn get_bit<IM>(&self, &I) -> <UTerm as GetBit<I>>::Output where
    IM: InternalMarker, 

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

type Output = Bn

pub fn get_bit<IM>(&self, &UTerm) -> <UInt<Un, Bn> as GetBit<UTerm>>::Output where
    IM: InternalMarker, 

impl Hash for UTerm

pub fn hash<__H>(&self, state: &mut __H) where
    __H: Hasher

Feeds this value into the given Hasher. Read more

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given Hasher. Read more

impl Len for UTerm

Length of UTerm by itself is 0

type Output = UTerm

The length as a type-level unsigned integer.

pub fn len(&self) -> <UTerm as Len>::Output

This function isn’t used in this crate, but may be useful for others.

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

type Output = U

The type of the maximum of Self and Rhs

pub fn max(self, rhs: U) -> <UTerm as Max<U>>::Output

Method returning the maximum

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

type Output = UTerm

The type of the minimum of Self and Rhs

pub fn min(self, U) -> <UTerm as Min<U>>::Output

Method returning the minimum

impl Mul<B0> for UTerm

UTerm * B0 = UTerm

type Output = UTerm

The resulting type after applying the * operator.

pub fn mul(self, B0) -> <UTerm as Mul<B0>>::Output

Performs the * operation. Read more

impl Mul<B1> for UTerm

UTerm * B1 = UTerm

type Output = UTerm

The resulting type after applying the * operator.

pub fn mul(self, B1) -> <UTerm as Mul<B1>>::Output

Performs the * operation. Read more

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

UTerm * U = UTerm

type Output = UTerm

The resulting type after applying the * operator.

pub fn mul(self, U) -> <UTerm as Mul<U>>::Output

Performs the * operation. Read more

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

UInt<U, B> * UTerm = UTerm

type Output = UTerm

The resulting type after applying the * operator.

pub fn mul(self, UTerm) -> <UInt<U, B> as Mul<UTerm>>::Output

Performs the * operation. Read more

impl Ord for UTerm

pub fn cmp(&self, other: &UTerm) -> Ordering

This method returns an Ordering between self and other. Read more

#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]

Compares and returns the maximum of two values. Read more

#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]

Compares and returns the minimum of two values. Read more

#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]

Restrict a value to a certain interval. Read more

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

pub fn partial_div(
    self,
    UInt<Ur, Br>
) -> <UTerm as PartialDiv<UInt<Ur, Br>>>::Output

Method for performing the division

impl PartialEq<UTerm> for UTerm

pub fn eq(&self, other: &UTerm) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialOrd<UTerm> for UTerm

pub fn partial_cmp(&self, other: &UTerm) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more

#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests less than (for self and other) and is used by the < operator. Read more

#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Pow<UTerm> for u8

type Output = u8

The result of the exponentiation.

pub fn powi(self, UTerm) -> <u8 as Pow<UTerm>>::Output

This function isn’t used in this crate, but may be useful for others. It is implemented for primitives. Read more

impl Pow<UTerm> for i16

type Output = i16

The result of the exponentiation.

pub fn powi(self, UTerm) -> <i16 as Pow<UTerm>>::Output

This function isn’t used in this crate, but may be useful for others. It is implemented for primitives. Read more

impl Pow<UTerm> for f64

type Output = f64

The result of the exponentiation.

pub fn powi(self, UTerm) -> <f64 as Pow<UTerm>>::Output

This function isn’t used in this crate, but may be useful for others. It is implemented for primitives. Read more

impl Pow<UTerm> for u16

type Output = u16

The result of the exponentiation.

pub fn powi(self, UTerm) -> <u16 as Pow<UTerm>>::Output

This function isn’t used in this crate, but may be useful for others. It is implemented for primitives. Read more

impl Pow<UTerm> for u64

type Output = u64

The result of the exponentiation.

pub fn powi(self, UTerm) -> <u64 as Pow<UTerm>>::Output

This function isn’t used in this crate, but may be useful for others. It is implemented for primitives. Read more

impl Pow<UTerm> for usize

type Output = usize

The result of the exponentiation.

pub fn powi(self, UTerm) -> <usize as Pow<UTerm>>::Output

This function isn’t used in this crate, but may be useful for others. It is implemented for primitives. Read more

impl Pow<UTerm> for f32

type Output = f32

The result of the exponentiation.

pub fn powi(self, UTerm) -> <f32 as Pow<UTerm>>::Output

This function isn’t used in this crate, but may be useful for others. It is implemented for primitives. Read more

impl Pow<UTerm> for i32

type Output = i32

The result of the exponentiation.

pub fn powi(self, UTerm) -> <i32 as Pow<UTerm>>::Output

This function isn’t used in this crate, but may be useful for others. It is implemented for primitives. Read more

impl Pow<UTerm> for isize

type Output = isize

The result of the exponentiation.

pub fn powi(self, UTerm) -> <isize as Pow<UTerm>>::Output

This function isn’t used in this crate, but may be useful for others. It is implemented for primitives. Read more

impl Pow<UTerm> for i8

type Output = i8

The result of the exponentiation.

pub fn powi(self, UTerm) -> <i8 as Pow<UTerm>>::Output

This function isn’t used in this crate, but may be useful for others. It is implemented for primitives. Read more

impl Pow<UTerm> for u32

type Output = u32

The result of the exponentiation.

pub fn powi(self, UTerm) -> <u32 as Pow<UTerm>>::Output

This function isn’t used in this crate, but may be useful for others. It is implemented for primitives. Read more

impl Pow<UTerm> for i64

type Output = i64

The result of the exponentiation.

pub fn powi(self, UTerm) -> <i64 as Pow<UTerm>>::Output

This function isn’t used in this crate, but may be useful for others. It is implemented for primitives. Read more

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

type Output = UTerm

The resulting type after applying the % operator.

pub fn rem(self, UInt<Ur, Br>) -> <UTerm as Rem<UInt<Ur, Br>>>::Output

Performs the % operation. Read more

impl Shl<B0> for UTerm

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

type Output = UTerm

The resulting type after applying the << operator.

pub fn shl(self, B0) -> <UTerm as Shl<B0>>::Output

Performs the << operation. Read more

impl Shl<B1> for UTerm

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

type Output = UTerm

The resulting type after applying the << operator.

pub fn shl(self, B1) -> <UTerm as Shl<B1>>::Output

Performs the << operation. Read more

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.

pub fn shl(self, U) -> <UTerm as Shl<U>>::Output

Performs the << operation. Read more

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

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

type Output = UInt<U, B>

The resulting type after applying the << operator.

pub fn shl(self, UTerm) -> <UInt<U, B> as Shl<UTerm>>::Output

Performs the << operation. Read more

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.

pub fn shr(self, B0) -> <UTerm as Shr<B0>>::Output

Performs the >> operation. Read more

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.

pub fn shr(self, B1) -> <UTerm as Shr<B1>>::Output

Performs the >> operation. Read more

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.

pub fn shr(self, U) -> <UTerm as Shr<U>>::Output

Performs the >> operation. Read more

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

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

type Output = UInt<U, B>

The resulting type after applying the >> operator.

pub fn shr(self, UTerm) -> <UInt<U, B> as Shr<UTerm>>::Output

Performs the >> operation. Read more

impl Sub<B0> for UTerm

UTerm - B0 = Term

type Output = UTerm

The resulting type after applying the - operator.

pub fn sub(self, B0) -> <UTerm as Sub<B0>>::Output

Performs the - operation. Read more

impl Sub<UTerm> for UTerm

UTerm - UTerm = UTerm

type Output = UTerm

The resulting type after applying the - operator.

pub fn sub(self, UTerm) -> <UTerm as Sub<UTerm>>::Output

Performs the - operation. Read more

impl ToInt<i16> for UTerm

pub fn to_int() -> i16

Method returning the concrete value for the type.

impl ToInt<i32> for UTerm

pub fn to_int() -> i32

Method returning the concrete value for the type.

impl ToInt<i64> for UTerm

pub fn to_int() -> i64

Method returning the concrete value for the type.

impl ToInt<i8> for UTerm

pub fn to_int() -> i8

Method returning the concrete value for the type.

impl ToInt<u16> for UTerm

pub fn to_int() -> u16

Method returning the concrete value for the type.

impl ToInt<u32> for UTerm

pub fn to_int() -> u32

Method returning the concrete value for the type.

impl ToInt<u64> for UTerm

pub fn to_int() -> u64

Method returning the concrete value for the type.

impl ToInt<u8> for UTerm

pub fn to_int() -> u8

Method returning the concrete value for the type.

impl ToInt<usize> for UTerm

pub fn to_int() -> usize

Method returning the concrete value for the type.

impl Unsigned for UTerm

pub const U8: u8

pub const U16: u16

pub const U32: u32

pub const U64: u64

pub const USIZE: usize

pub const I8: i8

pub const I16: i16

pub const I32: i32

pub const I64: i64

pub const ISIZE: isize

pub fn to_u8() -> u8

pub fn to_u16() -> u16

pub fn to_u32() -> u32

pub fn to_u64() -> u64

pub fn to_usize() -> usize

pub fn to_i8() -> i8

pub fn to_i16() -> i16

pub fn to_i32() -> i32

pub fn to_i64() -> i64

pub fn to_isize() -> isize

impl Copy for UTerm

impl Eq for UTerm

impl StructuralEq for UTerm

impl StructuralPartialEq for UTerm

impl Zero for UTerm

Auto Trait Implementations

impl RefUnwindSafe for UTerm

impl Send for UTerm

impl Sync for UTerm

impl Unpin for UTerm

impl UnwindSafe for UTerm

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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]

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn powi(self, n: N) -> <X as Pow<N>>::Output

This function isn’t used in this crate, but may be useful for others. It is implemented for primitives. Read more

impl<T> References<RawCodec> for T[src]

pub fn references<R, E>(
    _c: RawCodec,
    _r: &mut R,
    _set: &mut E
) -> Result<(), Error> where
    E: Extend<Cid<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>>,
    R: Read
[src]

Scrape the references from an impl Read. Read more

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

pub fn set_bit<IM>(self, i: I, b: B) -> <N as SetBit<I, B>>::Output where
    IM: InternalMarker, 

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.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

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