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 Ord for UTerm
impl Ord for UTerm
sourceimpl PartialOrd<UTerm> for UTerm
impl PartialOrd<UTerm> for UTerm
sourcefn partial_cmp(&self, other: &UTerm) -> Option<Ordering>
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: Unsigned> Shl<U> for UTerm
impl<U: Unsigned> Shl<U> for UTerm
Shifting left UTerm
by an unsigned integer: UTerm << U = UTerm
sourceimpl<U: Unsigned, B: Bit> Shl<UTerm> for UInt<U, B>
impl<U: Unsigned, B: Bit> Shl<UTerm> for UInt<U, B>
Shifting left UInt
by UTerm
: UInt<U, B> << UTerm = UInt<U, B>
sourceimpl<U: Unsigned> Shr<U> for UTerm
impl<U: Unsigned> Shr<U> for UTerm
Shifting right a UTerm
by an unsigned integer: UTerm >> U = UTerm
sourceimpl<U: Unsigned, B: Bit> Shr<UTerm> for UInt<U, B>
impl<U: Unsigned, B: Bit> Shr<UTerm> for UInt<U, B>
Shifting right UInt
by UTerm
: UInt<U, B> >> UTerm = UInt<U, B>
sourceimpl Unsigned for UTerm
impl Unsigned for UTerm
const U8: u8 = 0u8
const U16: u16 = 0u16
const U32: u32 = 0u32
const U64: u64 = 0u64
const USIZE: usize = 0usize
const I8: i8 = 0i8
const I16: i16 = 0i16
const I32: i32 = 0i32
const I64: i64 = 0i64
const ISIZE: isize = 0isize
fn to_u8() -> u8
fn to_u16() -> u16
fn to_u32() -> u32
fn to_u64() -> u64
fn to_usize() -> usize
fn to_i8() -> i8
fn to_i16() -> i16
fn to_i32() -> i32
fn to_i64() -> i64
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 · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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.