UTerm

Struct 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 Binary for UTerm

Source§

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

Formats the value using the given formatter. 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 duplicate 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§

fn compare<IM: InternalMarker>(&self, _: &UInt<U, B>) -> Self::Output

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§

fn compare<IM: InternalMarker>(&self, _: &UTerm) -> Self::Output

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§

fn compare<IM: InternalMarker>(&self, _: &UTerm) -> Self::Output

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 Eq for UTerm

Source§

#[doc(hidden)] fn assert_receiver_is_total_eq(&self)

Source§

impl<I> GetBit<I> for UTerm

Source§

type Output = B0

Source§

fn get_bit<IM: InternalMarker>(&self, _: &I) -> Self::Output

Source§

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

Source§

type Output = Bn

Source§

fn get_bit<IM: InternalMarker>(&self, _: &U0) -> Self::Output

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 Invert for UTerm

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§

#[doc(hidden)] fn __chaining_lt(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
If self == other, returns ControlFlow::Continue(()). Otherwise, returns ControlFlow::Break(self < other). Read more
Source§

#[doc(hidden)] fn __chaining_le(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for <= instead of <.
Source§

#[doc(hidden)] fn __chaining_gt(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for > instead of <.
Source§

#[doc(hidden)] fn __chaining_ge(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for >= instead of <.
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<U: Unsigned> PrivateAnd<U> for UTerm

UTerm & X = UTerm

Source§

type Output = UTerm

Source§

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

Source§

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

X & UTerm = UTerm

Source§

impl<U: Unsigned, B: Bit, SoFar: Ord> PrivateCmp<UInt<U, B>, SoFar> for UTerm

Got to the end of just the Lhs. It’s Less.

Source§

type Output = Less

Source§

fn private_cmp(&self, _: &UInt<U, B>, _: SoFar) -> Self::Output

Source§

impl<U: Unsigned, B: Bit, SoFar: Ord> PrivateCmp<UTerm, SoFar> for UInt<U, B>

Got to the end of just the Rhs. Lhs is Greater.

Source§

type Output = Greater

Source§

fn private_cmp(&self, _: &UTerm, _: SoFar) -> Self::Output

Source§

impl<SoFar: Ord> PrivateCmp<UTerm, SoFar> for UTerm

Got to the end of both! Return SoFar

Source§

type Output = SoFar

Source§

fn private_cmp(&self, _: &UTerm, so_far: SoFar) -> Self::Output

Source§

impl<N, D, Q, I> PrivateDiv<N, D, Q, UTerm, I> for ()
where N: GetBit<I>, UInt<UTerm, GetBitOut<N, I>>: Trim, TrimOut<UInt<UTerm, GetBitOut<N, I>>>: Cmp<D>, (): PrivateDivIf<N, D, Q, TrimOut<UInt<UTerm, GetBitOut<N, I>>>, I, Compare<TrimOut<UInt<UTerm, GetBitOut<N, I>>>, D>>,

Source§

type Quotient = <() as PrivateDivIf<N, D, Q, <UInt<UTerm, <N as GetBit<I>>::Output> as Trim>::Output, I, <<UInt<UTerm, <N as GetBit<I>>::Output> as Trim>::Output as Cmp<D>>::Output>>::Quotient

Source§

type Remainder = <() as PrivateDivIf<N, D, Q, <UInt<UTerm, <N as GetBit<I>>::Output> as Trim>::Output, I, <<UInt<UTerm, <N as GetBit<I>>::Output> as Trim>::Output as Cmp<D>>::Output>>::Remainder

Source§

fn private_div_quotient(self, n: N, d: D, q: Q, _: U0, i: I) -> Self::Quotient

Source§

fn private_div_remainder(self, n: N, d: D, q: Q, _: U0, i: I) -> Self::Remainder

Source§

impl<N, D, Q, R> PrivateDivIf<N, D, Q, R, UTerm, Equal> for ()
where Q: SetBit<U0, B1>,

Source§

type Quotient = <Q as SetBit<UTerm, B1>>::Output

Source§

type Remainder = UTerm

Source§

fn private_div_if_quotient( self, _: N, _: D, q: Q, _: R, i: U0, _: Equal, ) -> Self::Quotient

Source§

fn private_div_if_remainder( self, _: N, _: D, _: Q, _: R, i: U0, _: Equal, ) -> Self::Remainder

Source§

impl<N, D, Q, R> PrivateDivIf<N, D, Q, R, UTerm, Greater> for ()
where R: Sub<D>, Q: SetBit<U0, B1>,

Source§

type Quotient = <Q as SetBit<UTerm, B1>>::Output

Source§

type Remainder = <R as Sub<D>>::Output

Source§

fn private_div_if_quotient( self, _: N, _: D, q: Q, _: R, i: U0, _: Greater, ) -> Self::Quotient

Source§

fn private_div_if_remainder( self, _: N, d: D, _: Q, r: R, _: U0, _: Greater, ) -> Self::Remainder

Source§

impl<N, D, Q, R> PrivateDivIf<N, D, Q, R, UTerm, Less> for ()

Source§

type Quotient = Q

Source§

type Remainder = R

Source§

fn private_div_if_quotient( self, _: N, _: D, q: Q, _: R, _: U0, _: Less, ) -> Self::Quotient

Source§

fn private_div_if_remainder( self, _: N, _: D, _: Q, r: R, _: U0, _: Less, ) -> Self::Remainder

Source§

impl<IU: InvertedUnsigned> PrivateInvert<IU> for UTerm

Source§

type Output = IU

Source§

fn private_invert(self, rhs: IU) -> Self::Output

Source§

impl<Ul: Unsigned + NonZero, Ur: Unsigned + NonZero> PrivateRem<UTerm, NInt<Ur>> for NInt<Ul>

Source§

type Output = Z0

Source§

fn private_rem(self, _: U0, _: NInt<Ur>) -> Self::Output

Source§

impl<Ul: Unsigned + NonZero, Ur: Unsigned + NonZero> PrivateRem<UTerm, NInt<Ur>> for PInt<Ul>

Source§

type Output = Z0

Source§

fn private_rem(self, _: U0, _: NInt<Ur>) -> Self::Output

Source§

impl<Ul: Unsigned + NonZero, Ur: Unsigned + NonZero> PrivateRem<UTerm, PInt<Ur>> for NInt<Ul>

Source§

type Output = Z0

Source§

fn private_rem(self, _: U0, _: PInt<Ur>) -> Self::Output

Source§

impl<Ul: Unsigned + NonZero, Ur: Unsigned + NonZero> PrivateRem<UTerm, PInt<Ur>> for PInt<Ul>

Source§

type Output = Z0

Source§

fn private_rem(self, _: U0, _: PInt<Ur>) -> Self::Output

Source§

impl<I> PrivateSetBit<I, B0> for UTerm

Source§

type Output = UTerm

Source§

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

Source§

impl<I> PrivateSetBit<I, B1> for UTerm
where U1: Shl<I>,

Source§

type Output = <UInt<UTerm, B1> as Shl<I>>::Output

Source§

fn private_set_bit(self, i: I, _: B1) -> Self::Output

Source§

impl<Un, Bn, B> PrivateSetBit<UTerm, B> for UInt<Un, Bn>

Source§

type Output = UInt<Un, B>

Source§

fn private_set_bit(self, _: U0, b: B) -> Self::Output

Source§

impl PrivateSquareRoot for UTerm

Source§

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

UTerm ^ X = X

Source§

type Output = U

Source§

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

Source§

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

X ^ UTerm = X

Source§

type Output = UInt<U, B>

Source§

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

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<isize> for UTerm

Source§

const INT: isize = 0isize

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

fn to_int() -> isize

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 StructuralPartialEq for UTerm

Source§

impl TrivialClone 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<Ul> BitDiff<UTerm> for Ul
where Ul: Unsigned + Len,

Source§

type Output = <Ul as Len>::Output

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, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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<A, B> IsEqualPrivate<B, Equal> for A

Source§

type Output = B1

Source§

fn is_equal_private( self, _: B, _: Equal, ) -> <A as IsEqualPrivate<B, Equal>>::Output

Source§

impl<A, B> IsEqualPrivate<B, Greater> for A

Source§

impl<A, B> IsEqualPrivate<B, Less> for A

Source§

type Output = B0

Source§

fn is_equal_private( self, _: B, _: Less, ) -> <A as IsEqualPrivate<B, Less>>::Output

Source§

impl<A, B> IsGreaterOrEqualPrivate<B, Equal> for A

Source§

impl<A, B> IsGreaterOrEqualPrivate<B, Greater> for A

Source§

impl<A, B> IsGreaterOrEqualPrivate<B, Less> for A

Source§

impl<A, B> IsGreaterPrivate<B, Equal> for A

Source§

impl<A, B> IsGreaterPrivate<B, Greater> for A

Source§

impl<A, B> IsGreaterPrivate<B, Less> for A

Source§

type Output = B0

Source§

fn is_greater_private( self, _: B, _: Less, ) -> <A as IsGreaterPrivate<B, Less>>::Output

Source§

impl<A, B> IsLessOrEqualPrivate<B, Equal> for A

Source§

impl<A, B> IsLessOrEqualPrivate<B, Greater> for A

Source§

impl<A, B> IsLessOrEqualPrivate<B, Less> for A

Source§

impl<A, B> IsLessPrivate<B, Equal> for A

Source§

type Output = B0

Source§

fn is_less_private( self, _: B, _: Equal, ) -> <A as IsLessPrivate<B, Equal>>::Output

Source§

impl<A, B> IsLessPrivate<B, Greater> for A

Source§

type Output = B0

Source§

fn is_less_private( self, _: B, _: Greater, ) -> <A as IsLessPrivate<B, Greater>>::Output

Source§

impl<A, B> IsLessPrivate<B, Less> for A

Source§

type Output = B1

Source§

fn is_less_private(self, _: B, _: Less) -> <A as IsLessPrivate<B, Less>>::Output

Source§

impl<A, B> IsNotEqualPrivate<B, Equal> for A

Source§

impl<A, B> IsNotEqualPrivate<B, Greater> for A

Source§

impl<A, B> IsNotEqualPrivate<B, Less> for A

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<N, P> PrivateIntegerAdd<Equal, N> for P
where N: Unsigned, P: Unsigned,

Source§

impl<N, P> PrivateIntegerAdd<Less, N> for P
where N: Unsigned + Sub<P>, P: Unsigned, <N as Sub<P>>::Output: Unsigned + NonZero,

Source§

type Output = NInt<<N as Sub<P>>::Output>

Source§

fn private_integer_add( self, _: Less, n: N, ) -> <P as PrivateIntegerAdd<Less, N>>::Output

Source§

impl<Y, U, B, X> PrivatePow<Y, UInt<UInt<U, B>, B0>> for X
where Y: Unsigned, U: Unsigned, B: Bit, X: Unsigned + Mul, <X as Mul>::Output: PrivatePow<Y, UInt<U, B>>,

Source§

type Output = <<X as Mul>::Output as PrivatePow<Y, UInt<U, B>>>::Output

Source§

fn private_pow( self, y: Y, n: UInt<UInt<U, B>, B0>, ) -> <X as PrivatePow<Y, UInt<UInt<U, B>, B0>>>::Output

Source§

impl<Y, U, B, X> PrivatePow<Y, UInt<UInt<U, B>, B1>> for X
where Y: Unsigned, U: Unsigned, B: Bit, X: Unsigned + Mul + Mul<Y>, <X as Mul>::Output: PrivatePow<<X as Mul<Y>>::Output, UInt<U, B>>,

Source§

type Output = <<X as Mul>::Output as PrivatePow<<X as Mul<Y>>::Output, UInt<U, B>>>::Output

Source§

fn private_pow( self, y: Y, n: UInt<UInt<U, B>, B1>, ) -> <X as PrivatePow<Y, UInt<UInt<U, B>, B1>>>::Output

Source§

impl<Y, X> PrivatePow<Y, UInt<UTerm, B1>> for X
where Y: Unsigned, X: Unsigned + Mul<Y>,

Source§

type Output = <X as Mul<Y>>::Output

Source§

fn private_pow( self, y: Y, _: UInt<UTerm, B1>, ) -> <X as PrivatePow<Y, UInt<UTerm, B1>>>::Output

Source§

impl<Y, X> PrivatePow<Y, UTerm> for X
where Y: Unsigned, X: Unsigned,

Source§

type Output = Y

Source§

fn private_pow(self, y: Y, _: UTerm) -> <X as PrivatePow<Y, UTerm>>::Output

Source§

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

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<Ul, Ur> ShiftDiff<Ur> for Ul
where Ul: Unsigned + Shl<<Ur as BitDiff<Ul>>::Output>, Ur: Unsigned + BitDiff<Ul>,

Source§

type Output = <Ul as Shl<<Ur as BitDiff<Ul>>::Output>>::Output

Source§

impl<T> SizedTypeProperties for T

Source§

#[doc(hidden)] const SIZE: usize = _

🔬This is a nightly-only experimental API. (sized_type_properties)
Source§

#[doc(hidden)] const ALIGN: usize = _

🔬This is a nightly-only experimental API. (sized_type_properties)
Source§

#[doc(hidden)] const IS_ZST: bool = _

🔬This is a nightly-only experimental API. (sized_type_properties)
true if this type requires no storage. false if its size is greater than zero. Read more
Source§

#[doc(hidden)] const LAYOUT: Layout = _

🔬This is a nightly-only experimental API. (sized_type_properties)
Source§

#[doc(hidden)] const MAX_SLICE_LEN: usize = _

🔬This is a nightly-only experimental API. (sized_type_properties)
The largest safe length for a [Self]. Read more
Source§

impl<N> SquareRoot for N

Source§

type Output = <N as PrivateSquareRoot>::Output

The result of the integer square root.
Source§

impl<U> Trim for U

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.
Source§

impl<T> Printable for T
where T: Copy + Debug,