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
Trait Implementations
sourceimpl<U, B> Add<UTerm> for UInt<U, B> where
U: Unsigned,
B: Bit,
impl<U, B> Add<UTerm> for UInt<U, B> where
U: Unsigned,
B: Bit,
UInt<U, B> + UTerm = UInt<U, B>
sourceimpl<T> ArrayLength<T> for UTerm
impl<T> ArrayLength<T> for UTerm
type ArrayType
type ArrayType
Associated type representing the array type for the number
sourceimpl<T> ArrayLength<T> for UTerm
impl<T> ArrayLength<T> for UTerm
type ArrayType
type ArrayType
Associated type representing the array type for the number
sourceimpl<X> Gcd<UTerm> for X where
X: Unsigned + NonZero,
impl<X> Gcd<UTerm> for X where
X: Unsigned + NonZero,
gcd(x, 0) = x
type Output = X
type Output = X
The greatest common divisor.
sourceimpl<Y> Gcd<Y> for UTerm where
Y: Unsigned + NonZero,
impl<Y> Gcd<Y> for UTerm where
Y: Unsigned + NonZero,
gcd(0, y) = y
type Output = Y
type Output = Y
The greatest common divisor.
sourceimpl Ord for UTerm
impl Ord for UTerm
sourceimpl<Ur, Br> PartialDiv<UInt<Ur, Br>> for UTerm where
Ur: Unsigned,
Br: Bit,
impl<Ur, Br> PartialDiv<UInt<Ur, Br>> for UTerm where
Ur: Unsigned,
Br: Bit,
sourcepub fn partial_div(
self,
UInt<Ur, Br>
) -> <UTerm as PartialDiv<UInt<Ur, Br>>>::Output
pub fn partial_div(
self,
UInt<Ur, Br>
) -> <UTerm as PartialDiv<UInt<Ur, Br>>>::Output
Method for performing the division
sourceimpl PartialOrd<UTerm> for UTerm
impl PartialOrd<UTerm> for UTerm
sourcepub fn partial_cmp(&self, other: &UTerm) -> Option<Ordering>
pub 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 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl<U> Shl<U> for UTerm where
U: Unsigned,
impl<U> Shl<U> for UTerm where
U: Unsigned,
Shifting left UTerm
by an unsigned integer: UTerm << U = UTerm
sourceimpl<U, B> Shl<UTerm> for UInt<U, B> where
U: Unsigned,
B: Bit,
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>
sourceimpl<U> Shr<U> for UTerm where
U: Unsigned,
impl<U> Shr<U> for UTerm where
U: Unsigned,
Shifting right a UTerm
by an unsigned integer: UTerm >> U = UTerm
sourceimpl<U, B> Shr<UTerm> for UInt<U, B> where
U: Unsigned,
B: Bit,
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>
sourceimpl Unsigned for UTerm
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CallHasher for T where
T: Hash + ?Sized,
impl<T> CallHasher for T where
T: Hash + ?Sized,
sourceimpl<X> Gcd<UTerm> for X where
X: Unsigned + NonZero,
impl<X> Gcd<UTerm> for X where
X: Unsigned + NonZero,
type Output = X
type Output = X
The greatest common divisor.
sourceimpl<N, I, B> SetBit<I, B> for N where
N: PrivateSetBit<I, B>,
<N as PrivateSetBit<I, B>>::Output: Trim,
impl<N, I, B> SetBit<I, B> for N where
N: PrivateSetBit<I, B>,
<N as PrivateSetBit<I, B>>::Output: Trim,
sourceimpl<N> SquareRoot for N where
N: PrivateSquareRoot,
impl<N> SquareRoot for N where
N: PrivateSquareRoot,
type Output = <N as PrivateSquareRoot>::Output
type Output = <N as PrivateSquareRoot>::Output
The result of the integer square root.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more