The terminating type for UInt
; it always comes after the most significant
bit. UTerm
by itself represents zero, which is aliased to U0
.
Instantiates a singleton representing this unsigned integer.
The resulting type after applying the +
operator.
UTerm + B1 = UInt<UTerm, B1>
The resulting type after applying the +
operator.
The resulting type after applying the +
operator.
pub fn add(self, rhs: U) -> <UTerm as Add<U>>::Output
UInt<U, B> + UTerm = UInt<U, B>
The resulting type after applying the +
operator.
Associated type representing the array type for the number
The resulting type after applying the &
operator.
The resulting type after applying the |
operator.
The resulting type after applying the |
operator.
The resulting type after applying the ^
operator.
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,
The result of the comparison. It should only ever be one of Greater
, Less
, or Equal
.
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,
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
The resulting type after applying the /
operator.
The greatest common divisor.
The greatest common divisor.
The greatest common divisor.
impl<Un, Bn> GetBit<UTerm> for UInt<Un, Bn> where
Bn: Copy,
Length of UTerm
by itself is 0
The length as a type-level unsigned integer.
This function isn’t used in this crate, but may be useful for others.
The type of the maximum of Self
and Rhs
pub fn max(self, rhs: U) -> <UTerm as Max<U>>::Output
Method returning the maximum
The type of the minimum of Self
and Rhs
Method returning the minimum
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
UInt<U, B> * UTerm = UTerm
The resulting type after applying the *
operator.
#[must_use]
pub fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
#[must_use]
pub fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
#[must_use]
pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
Restrict a value to a certain interval. Read more
The type of the result of the division
Method for performing the division
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]
pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]
pub 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]
pub 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]
pub 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]
pub 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
The result of the exponentiation.
This function isn’t used in this crate, but may be useful for others.
It is implemented for primitives. Read more
The result of the exponentiation.
This function isn’t used in this crate, but may be useful for others.
It is implemented for primitives. Read more
The result of the exponentiation.
This function isn’t used in this crate, but may be useful for others.
It is implemented for primitives. Read more
The result of the exponentiation.
This function isn’t used in this crate, but may be useful for others.
It is implemented for primitives. Read more
The result of the exponentiation.
This function isn’t used in this crate, but may be useful for others.
It is implemented for primitives. Read more
The result of the exponentiation.
This function isn’t used in this crate, but may be useful for others.
It is implemented for primitives. Read more
The result of the exponentiation.
This function isn’t used in this crate, but may be useful for others.
It is implemented for primitives. Read more
The result of the exponentiation.
This function isn’t used in this crate, but may be useful for others.
It is implemented for primitives. Read more
The result of the exponentiation.
This function isn’t used in this crate, but may be useful for others.
It is implemented for primitives. Read more
The result of the exponentiation.
This function isn’t used in this crate, but may be useful for others.
It is implemented for primitives. Read more
The result of the exponentiation.
This function isn’t used in this crate, but may be useful for others.
It is implemented for primitives. Read more
The result of the exponentiation.
This function isn’t used in this crate, but may be useful for others.
It is implemented for primitives. Read more
The resulting type after applying the %
operator.
Shifting UTerm
by a 0 bit: UTerm << B0 = UTerm
The resulting type after applying the <<
operator.
Shifting UTerm
by a 1 bit: UTerm << B1 = UTerm
The resulting type after applying the <<
operator.
Shifting left UTerm
by an unsigned integer: UTerm << U = UTerm
The resulting type after applying the <<
operator.
Shifting left UInt
by UTerm
: UInt<U, B> << UTerm = UInt<U, B>
The resulting type after applying the <<
operator.
Shifting right UTerm
by a 0 bit: UTerm >> B0 = UTerm
The resulting type after applying the >>
operator.
Shifting right UTerm
by a 1 bit: UTerm >> B1 = UTerm
The resulting type after applying the >>
operator.
Shifting right a UTerm
by an unsigned integer: UTerm >> U = UTerm
The resulting type after applying the >>
operator.
Shifting right UInt
by UTerm
: UInt<U, B> >> UTerm = UInt<U, B>
The resulting type after applying the >>
operator.
The resulting type after applying the -
operator.
The resulting type after applying the -
operator.
Method returning the concrete value for the type.
Method returning the concrete value for the type.
Method returning the concrete value for the type.
Method returning the concrete value for the type.
Method returning the concrete value for the type.
Method returning the concrete value for the type.
Method returning the concrete value for the type.
Method returning the concrete value for the type.
Method returning the concrete value for the type.
impl<T> Any for T where
T: 'static + ?Sized,
[src]
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
The greatest common divisor.
impl<T, U> Into<U> for T where
U: From<T>,
[src]
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> Same<T> for T
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.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 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]
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.