Struct UTerm
pub struct UTerm;
The terminating type for UInt; it always comes after the most significant
bit. UTerm by itself represents zero, which is aliased to U0.
Implementations
impl UTerm
fn new() -> UTermInstantiates a singleton representing this unsigned integer.
Trait Implementations
impl Add<B0> for UTerm
type Output = UTerm;fn add(self, B0) -> Self::Output
impl Add<B1> for UTerm
type Output = UInt<UTerm, B1>;fn add(self, B1) -> Self::Output
impl Binary for UTerm
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Clone for UTerm
fn clone(&self) -> Self
impl Cmp for UTerm
type Output = Equal;
impl Copy for UTerm
impl Debug for UTerm
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for UTerm
fn default() -> Self
impl Eq for UTerm
impl Hash for UTerm
fn hash<__H: Hasher>(&self, state: &mut __H)
impl Len for UTerm
type Output = UTerm;fn len(&self) -> Self::Output
impl Mul<B0> for UTerm
type Output = UTerm;fn mul(self, B0) -> Self::Output
impl Mul<B1> for UTerm
type Output = UTerm;fn mul(self, B1) -> Self::Output
impl Ord for UTerm
fn cmp(&self, other: &Self) -> Ordering
impl PartialEq for UTerm
fn eq(&self, other: &Self) -> bool
impl PartialOrd for UTerm
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
impl Shl<B0> for UTerm
type Output = UTerm;fn shl(self, B0) -> Self::Output
impl Shl<B1> for UTerm
type Output = UTerm;fn shl(self, B1) -> Self::Output
impl Shr<B0> for UTerm
type Output = UTerm;fn shr(self, B0) -> Self::Output
impl Shr<B1> for UTerm
type Output = UTerm;fn shr(self, B1) -> Self::Output
impl StructuralPartialEq for UTerm
impl Sub for UTerm
type Output = UTerm;fn sub(self, UTerm) -> Self::Output
impl Sub<B0> for UTerm
type Output = UTerm;fn sub(self, B0) -> Self::Output
impl ToInt<i16> for UTerm
fn to_int() -> i16const INT: i16 = Self::I16;
impl ToInt<i32> for UTerm
fn to_int() -> i32const INT: i32 = Self::I32;
impl ToInt<i64> for UTerm
fn to_int() -> i64const INT: i64 = Self::I64;
impl ToInt<i8> for UTerm
fn to_int() -> i8const INT: i8 = Self::I8;
impl ToInt<isize> for UTerm
fn to_int() -> isizeconst INT: isize = Self::ISIZE;
impl ToInt<u16> for UTerm
fn to_int() -> u16const INT: u16 = Self::U16;
impl ToInt<u32> for UTerm
fn to_int() -> u32const INT: u32 = Self::U32;
impl ToInt<u64> for UTerm
fn to_int() -> u64const INT: u64 = Self::U64;
impl ToInt<u8> for UTerm
fn to_int() -> u8const INT: u8 = Self::U8;
impl ToInt<usize> for UTerm
fn to_int() -> usizeconst INT: usize = Self::USIZE;
impl Unsigned for UTerm
const U8: u8 = 0;const U16: u16 = 0;const U32: u32 = 0;const U64: u64 = 0;const USIZE: usize = 0;const I8: i8 = 0;const I16: i16 = 0;const I32: i32 = 0;const I64: i64 = 0;const ISIZE: isize = 0;fn to_u8() -> u8fn to_u16() -> u16fn to_u32() -> u32fn to_u64() -> u64fn to_usize() -> usizefn to_i8() -> i8fn to_i16() -> i16fn to_i32() -> i32fn to_i64() -> i64fn to_isize() -> isize
impl Zero for UTerm
impl<I> GetBit<I> for UTerm
type Output = B0;
impl<U> Max<U> for UTerm
where
U: Unsigned,
type Output = U;fn max(self, rhs: U) -> Self::Output
impl<U> Min<U> for UTerm
where
U: Unsigned,
type Output = UTerm;fn min(self, U) -> Self::Output
impl<U: Unsigned> Add<U> for UTerm
type Output = U;fn add(self, rhs: U) -> Self::Output
impl<U: Unsigned> BitOr<U> for UTerm
type Output = U;fn bitor(self, rhs: U) -> Self::Output
impl<U: Unsigned> Mul<U> for UTerm
type Output = UTerm;fn mul(self, U) -> Self::Output
impl<U: Unsigned> Shl<U> for UTerm
type Output = UTerm;fn shl(self, U) -> Self::Output
impl<U: Unsigned> Shr<U> for UTerm
type Output = UTerm;fn shr(self, U) -> Self::Output
impl<U: Unsigned, B: Bit> Cmp<UInt<U, B>> for UTerm
type Output = Less;
impl<Ur: Unsigned> BitAnd<Ur> for UTerm
type Output = UTerm;fn bitand(self, Ur) -> Self::Output
impl<Ur: Unsigned> BitXor<Ur> for UTerm
type Output = Ur;fn bitxor(self, rhs: Ur) -> Self::Output
impl<Ur: Unsigned, Br: Bit> Div<UInt<Ur, Br>> for UTerm
type Output = UTerm;fn div(self, UInt<Ur, Br>) -> Self::Output
impl<Ur: Unsigned, Br: Bit> PartialDiv<UInt<Ur, Br>> for UTerm
type Output = UTerm;fn partial_div(self, UInt<Ur, Br>) -> Self::Output
impl<Ur: Unsigned, Br: Bit> Rem<UInt<Ur, Br>> for UTerm
type Output = UTerm;fn rem(self, UInt<Ur, Br>) -> Self::Output