Trait bitint::UBitint

source ·
pub trait UBitint: Copy + Debug + Display + Hash + Eq + Ord + BitAnd<Output = Self> + BitAndAssign + BitOr<Output = Self> + BitOrAssign + BitXor<Output = Self> + BitXorAssign + TryFrom<Self::Primitive> + Into<Self::Primitive> + Num + NumAssignOps + Sized + Sealed {
    type Primitive: From<Self> + TryInto<Self>;

    const BITS: u32;
    const MASK: Self::Primitive;
    const MIN: Self;
    const MAX: Self;
    const ZERO: Self;
    const ONE: Self;

    // Required methods
    fn new(value: Self::Primitive) -> Option<Self>;
    fn new_masked(value: Self::Primitive) -> Self;
    unsafe fn new_unchecked(value: Self::Primitive) -> Self;
    fn is_in_range(value: Self::Primitive) -> bool;
}
Expand description

Unsigned bitint types.

There is one type implementing UBitint for each bit width from 1 to 128 inclusive.

Required Associated Types§

source

type Primitive: From<Self> + TryInto<Self>

The primitive type that this type wraps.

Required Associated Constants§

source

const BITS: u32

The bit width of this type.

source

const MASK: Self::Primitive

The bit mask for the bits that may be set in values of this type.

source

const MIN: Self

The smallest value of this type.

source

const MAX: Self

The largest value of this type.

source

const ZERO: Self

The value 0 represented in this type.

source

const ONE: Self

The value 1 represented in this type.

Required Methods§

source

fn new(value: Self::Primitive) -> Option<Self>

Creates an unsigned bitint value from a primitive value if it is in range for this type, as determined by is_in_range.

source

fn new_masked(value: Self::Primitive) -> Self

Creates an unsigned bitint value by masking off the upper bits of a primitive value.

This conversion is lossless if the value is in range for this type, as determined by is_in_range.

source

unsafe fn new_unchecked(value: Self::Primitive) -> Self

Creates an unsigned bitint value from a primitive value without checking whether it is in range for this type.

This is a zero-cost conversion.

Safety

The value must be in range for this type, as determined by is_in_range.

source

fn is_in_range(value: Self::Primitive) -> bool

Checks whether a primitive value is in range for this type.

There are a few equivalent ways to express this check.

  • The unused most significant bits are clear: (value & !Self::MASK) == 0
  • The value is between MIN and MAX, inclusive: value >= Self::MIN.as_primitive() && value <= Self::MAX.as_primitive()

Implementors§

source§

impl UBitint for U1

§

type Primitive = u8

source§

const BITS: u32 = 1u32

source§

const MASK: u8 = 1u8

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U2

§

type Primitive = u8

source§

const BITS: u32 = 2u32

source§

const MASK: u8 = 3u8

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U3

§

type Primitive = u8

source§

const BITS: u32 = 3u32

source§

const MASK: u8 = 7u8

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U4

§

type Primitive = u8

source§

const BITS: u32 = 4u32

source§

const MASK: u8 = 15u8

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U5

§

type Primitive = u8

source§

const BITS: u32 = 5u32

source§

const MASK: u8 = 31u8

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U6

§

type Primitive = u8

source§

const BITS: u32 = 6u32

source§

const MASK: u8 = 63u8

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U7

§

type Primitive = u8

source§

const BITS: u32 = 7u32

source§

const MASK: u8 = 127u8

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U8

§

type Primitive = u8

source§

const BITS: u32 = 8u32

source§

const MASK: u8 = 255u8

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U9

§

type Primitive = u16

source§

const BITS: u32 = 9u32

source§

const MASK: u16 = 511u16

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U10

§

type Primitive = u16

source§

const BITS: u32 = 10u32

source§

const MASK: u16 = 1_023u16

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U11

§

type Primitive = u16

source§

const BITS: u32 = 11u32

source§

const MASK: u16 = 2_047u16

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U12

§

type Primitive = u16

source§

const BITS: u32 = 12u32

source§

const MASK: u16 = 4_095u16

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U13

§

type Primitive = u16

source§

const BITS: u32 = 13u32

source§

const MASK: u16 = 8_191u16

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U14

§

type Primitive = u16

source§

const BITS: u32 = 14u32

source§

const MASK: u16 = 16_383u16

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U15

§

type Primitive = u16

source§

const BITS: u32 = 15u32

source§

const MASK: u16 = 32_767u16

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U16

§

type Primitive = u16

source§

const BITS: u32 = 16u32

source§

const MASK: u16 = 65_535u16

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U17

§

type Primitive = u32

source§

const BITS: u32 = 17u32

source§

const MASK: u32 = 131_071u32

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U18

§

type Primitive = u32

source§

const BITS: u32 = 18u32

source§

const MASK: u32 = 262_143u32

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U19

§

type Primitive = u32

source§

const BITS: u32 = 19u32

source§

const MASK: u32 = 524_287u32

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U20

§

type Primitive = u32

source§

const BITS: u32 = 20u32

source§

const MASK: u32 = 1_048_575u32

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U21

§

type Primitive = u32

source§

const BITS: u32 = 21u32

source§

const MASK: u32 = 2_097_151u32

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U22

§

type Primitive = u32

source§

const BITS: u32 = 22u32

source§

const MASK: u32 = 4_194_303u32

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U23

§

type Primitive = u32

source§

const BITS: u32 = 23u32

source§

const MASK: u32 = 8_388_607u32

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U24

§

type Primitive = u32

source§

const BITS: u32 = 24u32

source§

const MASK: u32 = 16_777_215u32

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U25

§

type Primitive = u32

source§

const BITS: u32 = 25u32

source§

const MASK: u32 = 33_554_431u32

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U26

§

type Primitive = u32

source§

const BITS: u32 = 26u32

source§

const MASK: u32 = 67_108_863u32

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U27

§

type Primitive = u32

source§

const BITS: u32 = 27u32

source§

const MASK: u32 = 134_217_727u32

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U28

§

type Primitive = u32

source§

const BITS: u32 = 28u32

source§

const MASK: u32 = 268_435_455u32

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U29

§

type Primitive = u32

source§

const BITS: u32 = 29u32

source§

const MASK: u32 = 536_870_911u32

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U30

§

type Primitive = u32

source§

const BITS: u32 = 30u32

source§

const MASK: u32 = 1_073_741_823u32

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U31

§

type Primitive = u32

source§

const BITS: u32 = 31u32

source§

const MASK: u32 = 2_147_483_647u32

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U32

§

type Primitive = u32

source§

const BITS: u32 = 32u32

source§

const MASK: u32 = 4_294_967_295u32

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U33

§

type Primitive = u64

source§

const BITS: u32 = 33u32

source§

const MASK: u64 = 8_589_934_591u64

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U34

§

type Primitive = u64

source§

const BITS: u32 = 34u32

source§

const MASK: u64 = 17_179_869_183u64

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U35

§

type Primitive = u64

source§

const BITS: u32 = 35u32

source§

const MASK: u64 = 34_359_738_367u64

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U36

§

type Primitive = u64

source§

const BITS: u32 = 36u32

source§

const MASK: u64 = 68_719_476_735u64

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U37

§

type Primitive = u64

source§

const BITS: u32 = 37u32

source§

const MASK: u64 = 137_438_953_471u64

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U38

§

type Primitive = u64

source§

const BITS: u32 = 38u32

source§

const MASK: u64 = 274_877_906_943u64

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U39

§

type Primitive = u64

source§

const BITS: u32 = 39u32

source§

const MASK: u64 = 549_755_813_887u64

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U40

§

type Primitive = u64

source§

const BITS: u32 = 40u32

source§

const MASK: u64 = 1_099_511_627_775u64

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U41

§

type Primitive = u64

source§

const BITS: u32 = 41u32

source§

const MASK: u64 = 2_199_023_255_551u64

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U42

§

type Primitive = u64

source§

const BITS: u32 = 42u32

source§

const MASK: u64 = 4_398_046_511_103u64

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U43

§

type Primitive = u64

source§

const BITS: u32 = 43u32

source§

const MASK: u64 = 8_796_093_022_207u64

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U44

§

type Primitive = u64

source§

const BITS: u32 = 44u32

source§

const MASK: u64 = 17_592_186_044_415u64

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U45

§

type Primitive = u64

source§

const BITS: u32 = 45u32

source§

const MASK: u64 = 35_184_372_088_831u64

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U46

§

type Primitive = u64

source§

const BITS: u32 = 46u32

source§

const MASK: u64 = 70_368_744_177_663u64

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U47

§

type Primitive = u64

source§

const BITS: u32 = 47u32

source§

const MASK: u64 = 140_737_488_355_327u64

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U48

§

type Primitive = u64

source§

const BITS: u32 = 48u32

source§

const MASK: u64 = 281_474_976_710_655u64

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U49

§

type Primitive = u64

source§

const BITS: u32 = 49u32

source§

const MASK: u64 = 562_949_953_421_311u64

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U50

§

type Primitive = u64

source§

const BITS: u32 = 50u32

source§

const MASK: u64 = 1_125_899_906_842_623u64

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U51

§

type Primitive = u64

source§

const BITS: u32 = 51u32

source§

const MASK: u64 = 2_251_799_813_685_247u64

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U52

§

type Primitive = u64

source§

const BITS: u32 = 52u32

source§

const MASK: u64 = 4_503_599_627_370_495u64

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U53

§

type Primitive = u64

source§

const BITS: u32 = 53u32

source§

const MASK: u64 = 9_007_199_254_740_991u64

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U54

§

type Primitive = u64

source§

const BITS: u32 = 54u32

source§

const MASK: u64 = 18_014_398_509_481_983u64

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U55

§

type Primitive = u64

source§

const BITS: u32 = 55u32

source§

const MASK: u64 = 36_028_797_018_963_967u64

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U56

§

type Primitive = u64

source§

const BITS: u32 = 56u32

source§

const MASK: u64 = 72_057_594_037_927_935u64

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U57

§

type Primitive = u64

source§

const BITS: u32 = 57u32

source§

const MASK: u64 = 144_115_188_075_855_871u64

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U58

§

type Primitive = u64

source§

const BITS: u32 = 58u32

source§

const MASK: u64 = 288_230_376_151_711_743u64

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U59

§

type Primitive = u64

source§

const BITS: u32 = 59u32

source§

const MASK: u64 = 576_460_752_303_423_487u64

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U60

§

type Primitive = u64

source§

const BITS: u32 = 60u32

source§

const MASK: u64 = 1_152_921_504_606_846_975u64

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U61

§

type Primitive = u64

source§

const BITS: u32 = 61u32

source§

const MASK: u64 = 2_305_843_009_213_693_951u64

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U62

§

type Primitive = u64

source§

const BITS: u32 = 62u32

source§

const MASK: u64 = 4_611_686_018_427_387_903u64

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U63

§

type Primitive = u64

source§

const BITS: u32 = 63u32

source§

const MASK: u64 = 9_223_372_036_854_775_807u64

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U64

§

type Primitive = u64

source§

const BITS: u32 = 64u32

source§

const MASK: u64 = 18_446_744_073_709_551_615u64

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U65

§

type Primitive = u128

source§

const BITS: u32 = 65u32

source§

const MASK: u128 = 36_893_488_147_419_103_231u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U66

§

type Primitive = u128

source§

const BITS: u32 = 66u32

source§

const MASK: u128 = 73_786_976_294_838_206_463u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U67

§

type Primitive = u128

source§

const BITS: u32 = 67u32

source§

const MASK: u128 = 147_573_952_589_676_412_927u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U68

§

type Primitive = u128

source§

const BITS: u32 = 68u32

source§

const MASK: u128 = 295_147_905_179_352_825_855u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U69

§

type Primitive = u128

source§

const BITS: u32 = 69u32

source§

const MASK: u128 = 590_295_810_358_705_651_711u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U70

§

type Primitive = u128

source§

const BITS: u32 = 70u32

source§

const MASK: u128 = 1_180_591_620_717_411_303_423u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U71

§

type Primitive = u128

source§

const BITS: u32 = 71u32

source§

const MASK: u128 = 2_361_183_241_434_822_606_847u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U72

§

type Primitive = u128

source§

const BITS: u32 = 72u32

source§

const MASK: u128 = 4_722_366_482_869_645_213_695u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U73

§

type Primitive = u128

source§

const BITS: u32 = 73u32

source§

const MASK: u128 = 9_444_732_965_739_290_427_391u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U74

§

type Primitive = u128

source§

const BITS: u32 = 74u32

source§

const MASK: u128 = 18_889_465_931_478_580_854_783u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U75

§

type Primitive = u128

source§

const BITS: u32 = 75u32

source§

const MASK: u128 = 37_778_931_862_957_161_709_567u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U76

§

type Primitive = u128

source§

const BITS: u32 = 76u32

source§

const MASK: u128 = 75_557_863_725_914_323_419_135u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U77

§

type Primitive = u128

source§

const BITS: u32 = 77u32

source§

const MASK: u128 = 151_115_727_451_828_646_838_271u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U78

§

type Primitive = u128

source§

const BITS: u32 = 78u32

source§

const MASK: u128 = 302_231_454_903_657_293_676_543u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U79

§

type Primitive = u128

source§

const BITS: u32 = 79u32

source§

const MASK: u128 = 604_462_909_807_314_587_353_087u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U80

§

type Primitive = u128

source§

const BITS: u32 = 80u32

source§

const MASK: u128 = 1_208_925_819_614_629_174_706_175u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U81

§

type Primitive = u128

source§

const BITS: u32 = 81u32

source§

const MASK: u128 = 2_417_851_639_229_258_349_412_351u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U82

§

type Primitive = u128

source§

const BITS: u32 = 82u32

source§

const MASK: u128 = 4_835_703_278_458_516_698_824_703u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U83

§

type Primitive = u128

source§

const BITS: u32 = 83u32

source§

const MASK: u128 = 9_671_406_556_917_033_397_649_407u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U84

§

type Primitive = u128

source§

const BITS: u32 = 84u32

source§

const MASK: u128 = 19_342_813_113_834_066_795_298_815u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U85

§

type Primitive = u128

source§

const BITS: u32 = 85u32

source§

const MASK: u128 = 38_685_626_227_668_133_590_597_631u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U86

§

type Primitive = u128

source§

const BITS: u32 = 86u32

source§

const MASK: u128 = 77_371_252_455_336_267_181_195_263u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U87

§

type Primitive = u128

source§

const BITS: u32 = 87u32

source§

const MASK: u128 = 154_742_504_910_672_534_362_390_527u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U88

§

type Primitive = u128

source§

const BITS: u32 = 88u32

source§

const MASK: u128 = 309_485_009_821_345_068_724_781_055u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U89

§

type Primitive = u128

source§

const BITS: u32 = 89u32

source§

const MASK: u128 = 618_970_019_642_690_137_449_562_111u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U90

§

type Primitive = u128

source§

const BITS: u32 = 90u32

source§

const MASK: u128 = 1_237_940_039_285_380_274_899_124_223u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U91

§

type Primitive = u128

source§

const BITS: u32 = 91u32

source§

const MASK: u128 = 2_475_880_078_570_760_549_798_248_447u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U92

§

type Primitive = u128

source§

const BITS: u32 = 92u32

source§

const MASK: u128 = 4_951_760_157_141_521_099_596_496_895u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U93

§

type Primitive = u128

source§

const BITS: u32 = 93u32

source§

const MASK: u128 = 9_903_520_314_283_042_199_192_993_791u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U94

§

type Primitive = u128

source§

const BITS: u32 = 94u32

source§

const MASK: u128 = 19_807_040_628_566_084_398_385_987_583u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U95

§

type Primitive = u128

source§

const BITS: u32 = 95u32

source§

const MASK: u128 = 39_614_081_257_132_168_796_771_975_167u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U96

§

type Primitive = u128

source§

const BITS: u32 = 96u32

source§

const MASK: u128 = 79_228_162_514_264_337_593_543_950_335u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U97

§

type Primitive = u128

source§

const BITS: u32 = 97u32

source§

const MASK: u128 = 158_456_325_028_528_675_187_087_900_671u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U98

§

type Primitive = u128

source§

const BITS: u32 = 98u32

source§

const MASK: u128 = 316_912_650_057_057_350_374_175_801_343u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U99

§

type Primitive = u128

source§

const BITS: u32 = 99u32

source§

const MASK: u128 = 633_825_300_114_114_700_748_351_602_687u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U100

§

type Primitive = u128

source§

const BITS: u32 = 100u32

source§

const MASK: u128 = 1_267_650_600_228_229_401_496_703_205_375u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U101

§

type Primitive = u128

source§

const BITS: u32 = 101u32

source§

const MASK: u128 = 2_535_301_200_456_458_802_993_406_410_751u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U102

§

type Primitive = u128

source§

const BITS: u32 = 102u32

source§

const MASK: u128 = 5_070_602_400_912_917_605_986_812_821_503u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U103

§

type Primitive = u128

source§

const BITS: u32 = 103u32

source§

const MASK: u128 = 10_141_204_801_825_835_211_973_625_643_007u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U104

§

type Primitive = u128

source§

const BITS: u32 = 104u32

source§

const MASK: u128 = 20_282_409_603_651_670_423_947_251_286_015u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U105

§

type Primitive = u128

source§

const BITS: u32 = 105u32

source§

const MASK: u128 = 40_564_819_207_303_340_847_894_502_572_031u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U106

§

type Primitive = u128

source§

const BITS: u32 = 106u32

source§

const MASK: u128 = 81_129_638_414_606_681_695_789_005_144_063u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U107

§

type Primitive = u128

source§

const BITS: u32 = 107u32

source§

const MASK: u128 = 162_259_276_829_213_363_391_578_010_288_127u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U108

§

type Primitive = u128

source§

const BITS: u32 = 108u32

source§

const MASK: u128 = 324_518_553_658_426_726_783_156_020_576_255u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U109

§

type Primitive = u128

source§

const BITS: u32 = 109u32

source§

const MASK: u128 = 649_037_107_316_853_453_566_312_041_152_511u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U110

§

type Primitive = u128

source§

const BITS: u32 = 110u32

source§

const MASK: u128 = 1_298_074_214_633_706_907_132_624_082_305_023u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U111

§

type Primitive = u128

source§

const BITS: u32 = 111u32

source§

const MASK: u128 = 2_596_148_429_267_413_814_265_248_164_610_047u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U112

§

type Primitive = u128

source§

const BITS: u32 = 112u32

source§

const MASK: u128 = 5_192_296_858_534_827_628_530_496_329_220_095u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U113

§

type Primitive = u128

source§

const BITS: u32 = 113u32

source§

const MASK: u128 = 10_384_593_717_069_655_257_060_992_658_440_191u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U114

§

type Primitive = u128

source§

const BITS: u32 = 114u32

source§

const MASK: u128 = 20_769_187_434_139_310_514_121_985_316_880_383u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U115

§

type Primitive = u128

source§

const BITS: u32 = 115u32

source§

const MASK: u128 = 41_538_374_868_278_621_028_243_970_633_760_767u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U116

§

type Primitive = u128

source§

const BITS: u32 = 116u32

source§

const MASK: u128 = 83_076_749_736_557_242_056_487_941_267_521_535u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U117

§

type Primitive = u128

source§

const BITS: u32 = 117u32

source§

const MASK: u128 = 166_153_499_473_114_484_112_975_882_535_043_071u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U118

§

type Primitive = u128

source§

const BITS: u32 = 118u32

source§

const MASK: u128 = 332_306_998_946_228_968_225_951_765_070_086_143u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U119

§

type Primitive = u128

source§

const BITS: u32 = 119u32

source§

const MASK: u128 = 664_613_997_892_457_936_451_903_530_140_172_287u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U120

§

type Primitive = u128

source§

const BITS: u32 = 120u32

source§

const MASK: u128 = 1_329_227_995_784_915_872_903_807_060_280_344_575u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U121

§

type Primitive = u128

source§

const BITS: u32 = 121u32

source§

const MASK: u128 = 2_658_455_991_569_831_745_807_614_120_560_689_151u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U122

§

type Primitive = u128

source§

const BITS: u32 = 122u32

source§

const MASK: u128 = 5_316_911_983_139_663_491_615_228_241_121_378_303u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U123

§

type Primitive = u128

source§

const BITS: u32 = 123u32

source§

const MASK: u128 = 10_633_823_966_279_326_983_230_456_482_242_756_607u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U124

§

type Primitive = u128

source§

const BITS: u32 = 124u32

source§

const MASK: u128 = 21_267_647_932_558_653_966_460_912_964_485_513_215u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U125

§

type Primitive = u128

source§

const BITS: u32 = 125u32

source§

const MASK: u128 = 42_535_295_865_117_307_932_921_825_928_971_026_431u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U126

§

type Primitive = u128

source§

const BITS: u32 = 126u32

source§

const MASK: u128 = 85_070_591_730_234_615_865_843_651_857_942_052_863u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U127

§

type Primitive = u128

source§

const BITS: u32 = 127u32

source§

const MASK: u128 = 170_141_183_460_469_231_731_687_303_715_884_105_727u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE

source§

impl UBitint for U128

§

type Primitive = u128

source§

const BITS: u32 = 128u32

source§

const MASK: u128 = 340_282_366_920_938_463_463_374_607_431_768_211_455u128

source§

const MIN: Self = Self::MIN

source§

const MAX: Self = Self::MAX

source§

const ZERO: Self = Self::ZERO

source§

const ONE: Self = Self::ONE