Module malachite_base::num::basic::integers
source · Expand description
The PrimitiveInt
trait.
use malachite_base::num::basic::integers::PrimitiveInt;
use malachite_base::num::basic::traits::{One, Two, Zero};
assert_eq!(u32::WIDTH, 32);
assert_eq!(u32::LOG_WIDTH, 5);
assert_eq!(u32::WIDTH_MASK, 0x1f);
assert_eq!(u32::ZERO, 0);
assert_eq!(u32::ONE, 1);
assert_eq!(i16::TWO, 2);
assert_eq!(u32::MAX, 0xffffffff);
assert_eq!(u32::MIN, 0);
assert_eq!(i32::MAX, 0x7fffffff);
assert_eq!(i32::MIN, -0x80000000);
Traits§
- Defines functions on primitive integer types: uxx, ixx, usize, and isize.