Struct typenum::uint::UTerm

source ·
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§

source§

impl UTerm

source

pub fn new() -> UTerm

Instantiates a singleton representing this unsigned integer.

Trait Implementations§

source§

impl Add<B0> for UTerm

UTerm + B0 = UTerm

source§

type Output = UTerm

The resulting type after applying the + operator.
source§

fn add(self, _: B0) -> Self::Output

Performs the + operation. Read more
source§

impl Add<B1> for UTerm

UTerm + B1 = UInt<UTerm, B1>

source§

type Output = UInt<UTerm, B1>

The resulting type after applying the + operator.
source§

fn add(self, _: B1) -> Self::Output

Performs the + operation. Read more
source§

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

UTerm + U = U

source§

type Output = U

The resulting type after applying the + operator.
source§

fn add(self, rhs: U) -> Self::Output

Performs the + operation. Read more
source§

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

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

source§

type Output = UInt<U, B>

The resulting type after applying the + operator.
source§

fn add(self, _: UTerm) -> Self::Output

Performs the + operation. Read more
source§

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

0 & X = 0

source§

type Output = UTerm

The resulting type after applying the & operator.
source§

fn bitand(self, _: Ur) -> Self::Output

Performs the & operation. Read more
source§

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

UTerm | X = X

source§

type Output = U

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: U) -> Self::Output

Performs the | operation. Read more
source§

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

X | UTerm = X

source§

type Output = UInt<U, B>

The resulting type after applying the | operator.
source§

fn bitor(self, _: UTerm) -> Self::Output

Performs the | operation. Read more
source§

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

0 ^ X = X

source§

type Output = Ur

The resulting type after applying the ^ operator.
source§

fn bitxor(self, rhs: Ur) -> Self::Output

Performs the ^ operation. Read more
source§

impl Clone for UTerm

source§

fn clone(&self) -> UTerm

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

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

Zero < Nonzero

source§

type Output = Less

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

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

Nonzero > Zero

source§

type Output = Greater

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

impl Cmp for UTerm

Zero == Zero

source§

type Output = Equal

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

impl Debug for UTerm

source§

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

Formats the value using the given formatter. Read more
source§

impl Default for UTerm

source§

fn default() -> UTerm

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

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

source§

type Output = UTerm

The resulting type after applying the / operator.
source§

fn div(self, _: UInt<Ur, Br>) -> Self::Output

Performs the / operation. Read more
source§

impl Gcd<UTerm> for U0

gcd(0, 0) = 0

source§

type Output = UTerm

The greatest common divisor.
source§

impl<I> GetBit<I> for UTerm

source§

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

source§

type Output = Bn

source§

impl Hash for UTerm

source§

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

Feeds this value into the given Hasher. Read more
1.3.0 · source§

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

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

impl Len for UTerm

Length of UTerm by itself is 0

source§

type Output = UTerm

The length as a type-level unsigned integer.
source§

fn len(&self) -> Self::Output

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

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

source§

type Output = U

The type of the maximum of Self and Rhs
source§

fn max(self, rhs: U) -> Self::Output

Method returning the maximum
source§

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

source§

type Output = UTerm

The type of the minimum of Self and Rhs
source§

fn min(self, _: U) -> Self::Output

Method returning the minimum
source§

impl Mul<B0> for UTerm

UTerm * B0 = UTerm

source§

type Output = UTerm

The resulting type after applying the * operator.
source§

fn mul(self, _: B0) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<B1> for UTerm

UTerm * B1 = UTerm

source§

type Output = UTerm

The resulting type after applying the * operator.
source§

fn mul(self, _: B1) -> Self::Output

Performs the * operation. Read more
source§

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

UTerm * U = UTerm

source§

type Output = UTerm

The resulting type after applying the * operator.
source§

fn mul(self, _: U) -> Self::Output

Performs the * operation. Read more
source§

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

UInt<U, B> * UTerm = UTerm

source§

type Output = UTerm

The resulting type after applying the * operator.
source§

fn mul(self, _: UTerm) -> Self::Output

Performs the * operation. Read more
source§

impl Ord for UTerm

source§

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

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
source§

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

source§

type Output = UTerm

The type of the result of the division
source§

fn partial_div(self, _: UInt<Ur, Br>) -> Self::Output

Method for performing the division
source§

impl PartialEq for UTerm

source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for UTerm

source§

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

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

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Pow<UTerm> for f32

source§

type Output = f32

The result of the exponentiation.
source§

fn powi(self, _: UTerm) -> Self::Output

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

impl Pow<UTerm> for f64

source§

type Output = f64

The result of the exponentiation.
source§

fn powi(self, _: UTerm) -> Self::Output

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

impl Pow<UTerm> for i16

source§

type Output = i16

The result of the exponentiation.
source§

fn powi(self, _: UTerm) -> Self::Output

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

impl Pow<UTerm> for i32

source§

type Output = i32

The result of the exponentiation.
source§

fn powi(self, _: UTerm) -> Self::Output

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

impl Pow<UTerm> for i64

source§

type Output = i64

The result of the exponentiation.
source§

fn powi(self, _: UTerm) -> Self::Output

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

impl Pow<UTerm> for i8

source§

type Output = i8

The result of the exponentiation.
source§

fn powi(self, _: UTerm) -> Self::Output

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

impl Pow<UTerm> for isize

source§

type Output = isize

The result of the exponentiation.
source§

fn powi(self, _: UTerm) -> Self::Output

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

impl Pow<UTerm> for u16

source§

type Output = u16

The result of the exponentiation.
source§

fn powi(self, _: UTerm) -> Self::Output

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

impl Pow<UTerm> for u32

source§

type Output = u32

The result of the exponentiation.
source§

fn powi(self, _: UTerm) -> Self::Output

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

impl Pow<UTerm> for u64

source§

type Output = u64

The result of the exponentiation.
source§

fn powi(self, _: UTerm) -> Self::Output

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

impl Pow<UTerm> for u8

source§

type Output = u8

The result of the exponentiation.
source§

fn powi(self, _: UTerm) -> Self::Output

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

impl Pow<UTerm> for usize

source§

type Output = usize

The result of the exponentiation.
source§

fn powi(self, _: UTerm) -> Self::Output

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

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

source§

type Output = UTerm

The resulting type after applying the % operator.
source§

fn rem(self, _: UInt<Ur, Br>) -> Self::Output

Performs the % operation. Read more
source§

impl Shl<B0> for UTerm

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

source§

type Output = UTerm

The resulting type after applying the << operator.
source§

fn shl(self, _: B0) -> Self::Output

Performs the << operation. Read more
source§

impl Shl<B1> for UTerm

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

source§

type Output = UTerm

The resulting type after applying the << operator.
source§

fn shl(self, _: B1) -> Self::Output

Performs the << operation. Read more
source§

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

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

source§

type Output = UTerm

The resulting type after applying the << operator.
source§

fn shl(self, _: U) -> Self::Output

Performs the << operation. Read more
source§

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

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

source§

type Output = UInt<U, B>

The resulting type after applying the << operator.
source§

fn shl(self, _: UTerm) -> Self::Output

Performs the << operation. Read more
source§

impl Shr<B0> for UTerm

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

source§

type Output = UTerm

The resulting type after applying the >> operator.
source§

fn shr(self, _: B0) -> Self::Output

Performs the >> operation. Read more
source§

impl Shr<B1> for UTerm

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

source§

type Output = UTerm

The resulting type after applying the >> operator.
source§

fn shr(self, _: B1) -> Self::Output

Performs the >> operation. Read more
source§

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

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

source§

type Output = UTerm

The resulting type after applying the >> operator.
source§

fn shr(self, _: U) -> Self::Output

Performs the >> operation. Read more
source§

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

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

source§

type Output = UInt<U, B>

The resulting type after applying the >> operator.
source§

fn shr(self, _: UTerm) -> Self::Output

Performs the >> operation. Read more
source§

impl Sub<B0> for UTerm

UTerm - B0 = Term

source§

type Output = UTerm

The resulting type after applying the - operator.
source§

fn sub(self, _: B0) -> Self::Output

Performs the - operation. Read more
source§

impl Sub for UTerm

UTerm - UTerm = UTerm

source§

type Output = UTerm

The resulting type after applying the - operator.
source§

fn sub(self, _: UTerm) -> Self::Output

Performs the - operation. Read more
source§

impl ToInt<i16> for UTerm

source§

const INT: i16 = 0i16

The concrete value for the type. Can be used in const contexts.
source§

fn to_int() -> i16

Method returning the concrete value for the type.
source§

impl ToInt<i32> for UTerm

source§

const INT: i32 = 0i32

The concrete value for the type. Can be used in const contexts.
source§

fn to_int() -> i32

Method returning the concrete value for the type.
source§

impl ToInt<i64> for UTerm

source§

const INT: i64 = 0i64

The concrete value for the type. Can be used in const contexts.
source§

fn to_int() -> i64

Method returning the concrete value for the type.
source§

impl ToInt<i8> for UTerm

source§

const INT: i8 = 0i8

The concrete value for the type. Can be used in const contexts.
source§

fn to_int() -> i8

Method returning the concrete value for the type.
source§

impl ToInt<u16> for UTerm

source§

const INT: u16 = 0u16

The concrete value for the type. Can be used in const contexts.
source§

fn to_int() -> u16

Method returning the concrete value for the type.
source§

impl ToInt<u32> for UTerm

source§

const INT: u32 = 0u32

The concrete value for the type. Can be used in const contexts.
source§

fn to_int() -> u32

Method returning the concrete value for the type.
source§

impl ToInt<u64> for UTerm

source§

const INT: u64 = 0u64

The concrete value for the type. Can be used in const contexts.
source§

fn to_int() -> u64

Method returning the concrete value for the type.
source§

impl ToInt<u8> for UTerm

source§

const INT: u8 = 0u8

The concrete value for the type. Can be used in const contexts.
source§

fn to_int() -> u8

Method returning the concrete value for the type.
source§

impl ToInt<usize> for UTerm

source§

const INT: usize = 0usize

The concrete value for the type. Can be used in const contexts.
source§

fn to_int() -> usize

Method returning the concrete value for the type.
source§

impl Unsigned for UTerm

source§

const U8: u8 = 0u8

source§

const U16: u16 = 0u16

source§

const U32: u32 = 0u32

source§

const U64: u64 = 0u64

source§

const USIZE: usize = 0usize

source§

const I8: i8 = 0i8

source§

const I16: i16 = 0i16

source§

const I32: i32 = 0i32

source§

const I64: i64 = 0i64

source§

const ISIZE: isize = 0isize

source§

fn to_u8() -> u8

source§

fn to_u16() -> u16

source§

fn to_u32() -> u32

source§

fn to_u64() -> u64

source§

fn to_usize() -> usize

source§

fn to_i8() -> i8

source§

fn to_i16() -> i16

source§

fn to_i32() -> i32

source§

fn to_i64() -> i64

source§

fn to_isize() -> isize

source§

impl Copy for UTerm

source§

impl Eq for UTerm

source§

impl StructuralPartialEq for UTerm

source§

impl Zero for UTerm

Auto Trait Implementations§

§

impl Freeze for UTerm

§

impl RefUnwindSafe for UTerm

§

impl Send for UTerm

§

impl Sync for UTerm

§

impl Unpin for UTerm

§

impl UnwindSafe for UTerm

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

source§

type Output = X

The greatest common divisor.
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

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

source§

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

The result of the exponentiation.
source§

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
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

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

source§

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

source§

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

source§

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

source§

type Output = <N as PrivateSquareRoot>::Output

The result of the integer square root.
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

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

The type returned in the event of a conversion error.
source§

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

Performs the conversion.

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 0 bytes