Module typenum::consts [] [src]

Type aliases for many constants.

This file is generated by typenum's build script.

For unsigned integers, the format is U followed by the number. We define aliases for

These alias definitions look like this:

use typenum::{B0, B1, UInt, UTerm};

type U6 = UInt<UInt<UInt<UTerm, B1>, B1>, B0>;

For positive signed integers, the format is P followed by the number and for negative signed integers it is N followed by the number. For the signed integer zero, we use Z0. We define aliases for

These alias definitions look like this:

use typenum::{B0, B1, UInt, UTerm, PInt, NInt};

type P6 = PInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>>;
type N6 = NInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>>;

Example

use typenum::{U0, U1, U2, U3, U4, U5, U6};
use typenum::{N3, N2, N1, Z0, P1, P2, P3};
use typenum::{U774, N17, N10000, P1024, P4096};

We also define the aliases False and True for B0 and B1, respectively.

Reexports

pub use bit::B0;
pub use bit::B1;
pub use int::Z0;

Type Definitions

False
N1
N10
N100
N1000
N10000
N100000
N1000000
N10000000
N100000000
N1000000000
N10000000000
N100000000000
N1000000000000
N10000000000000
N100000000000000
N1000000000000000
N10000000000000000
N100000000000000000
N1000000000000000000
N1001
N1002
N1003
N1004
N1005
N1006
N1007
N1008
N1009
N101
N1010
N1011
N1012
N1013
N1014
N1015
N1016
N1017
N1018
N1019
N102
N1020
N1021
N1022
N1023
N1024
N103
N104
N1048576
N105
N106
N107
N1073741824
N108
N109
N1099511627776
N11
N110
N111
N112
N1125899906842624
N113
N114
N115
N1152921504606846976
N116
N117
N118
N119
N12
N120
N121
N122
N123
N124
N125
N126
N127
N128
N129
N13
N130
N131
N131072
N132
N133
N134
N134217728
N135
N136
N137
N137438953472
N138
N139
N14
N140
N140737488355328
N141
N142
N143
N144
N144115188075855872
N145
N146
N147
N148
N149
N15
N150
N151
N152
N153
N154
N155
N156
N157
N158
N159
N16
N160
N161
N162
N163
N16384
N164
N165
N166
N167
N16777216
N168
N169
N17
N170
N171
N17179869184
N172
N173
N174
N175
N17592186044416
N176
N177
N178
N179
N18
N180
N18014398509481984
N181
N182
N183
N184
N185
N186
N187
N188
N189
N19
N190
N191
N192
N193
N194
N195
N196
N197
N198
N199
N2
N20
N200
N201
N202
N203
N204
N2048
N205
N206
N207
N208
N209
N2097152
N21
N210
N211
N212
N213
N214
N2147483648
N215
N216
N217
N218
N219
N2199023255552
N22
N220
N221
N222
N223
N224
N225
N2251799813685248
N226
N227
N228
N229
N23
N230
N2305843009213693952
N231
N232
N233
N234
N235
N236
N237
N238
N239
N24
N240
N241
N242
N243
N244
N245
N246
N247
N248
N249
N25
N250
N251
N252
N253
N254
N255
N256
N257
N258
N259
N26
N260
N261
N262
N262144
N263
N264
N265
N266
N267
N268
N268435456
N269
N27
N270
N271
N272
N273
N274
N274877906944
N275
N276
N277
N278
N279
N28
N280
N281
N281474976710656
N282
N283
N284
N285
N286
N287
N288
N288230376151711744
N289
N29
N290
N291
N292
N293
N294
N295
N296
N297
N298
N299
N3
N30
N300
N301
N302
N303
N304
N305
N306
N307
N308
N309
N31
N310
N311
N312
N313
N314
N315
N316
N317
N318
N319
N32
N320
N321
N322
N323
N324
N325
N326
N327
N32768
N328
N329
N33
N330
N331
N332
N333
N334
N335
N33554432
N336
N337
N338
N339
N34
N340
N341
N342
N343
N34359738368
N344
N345
N346
N347
N348
N349
N35
N350
N351
N35184372088832
N352
N353
N354
N355
N356
N357
N358
N359
N36
N360
N36028797018963968
N361
N362
N363
N364
N365
N366
N367
N368
N369
N37
N370
N371
N372
N373
N374
N375
N376
N377
N378
N379
N38
N380
N381
N382
N383
N384
N385
N386
N387
N388
N389
N39
N390
N391
N392
N393
N394
N395
N396
N397
N398
N399
N4
N40
N400
N401
N402
N403
N404
N405
N406
N407
N408
N409
N4096
N41
N410
N411
N412
N413
N414
N415
N416
N417
N418
N419
N4194304
N42
N420
N421
N422
N423
N424
N425
N426
N427
N428
N429
N4294967296
N43
N430
N431
N432
N433
N434
N435
N436
N437
N438
N439
N4398046511104
N44
N440
N441
N442
N443
N444
N445
N446
N447
N448
N449
N45
N450
N4503599627370496
N451
N452
N453
N454
N455
N456
N457
N458
N459
N46
N460
N461
N4611686018427387904
N462
N463
N464
N465
N466
N467
N468
N469
N47
N470
N471
N472
N473
N474
N475
N476
N477
N478
N479
N48
N480
N481
N482
N483
N484
N485
N486
N487
N488
N489
N49
N490
N491
N492
N493
N494
N495
N496
N497
N498
N499
N5
N50
N500
N501
N502
N503
N504
N505
N506
N507
N508
N509
N51
N510
N511
N512
N513
N514
N515
N516
N517
N518
N519
N52
N520
N521
N522
N523
N524
N524288
N525
N526
N527
N528
N529
N53
N530
N531
N532
N533
N534
N535
N536
N536870912
N537
N538
N539
N54
N540
N541
N542
N543
N544
N545
N546
N547
N548
N549
N549755813888
N55
N550
N551
N552
N553
N554
N555
N556
N557
N558
N559
N56
N560
N561
N562
N562949953421312
N563
N564
N565
N566
N567
N568
N569
N57
N570
N571
N572
N573
N574
N575
N576
N576460752303423488
N577
N578
N579
N58
N580
N581
N582
N583
N584
N585
N586
N587
N588
N589
N59
N590
N591
N592
N593
N594
N595
N596
N597
N598
N599
N6
N60
N600
N601
N602
N603
N604
N605
N606
N607
N608
N609
N61
N610
N611
N612
N613
N614
N615
N616
N617
N618
N619
N62
N620
N621
N622
N623
N624
N625
N626
N627
N628
N629
N63
N630
N631
N632
N633
N634
N635
N636
N637
N638
N639
N64
N640
N641
N642
N643
N644
N645
N646
N647
N648
N649
N65
N650
N651
N652
N653
N654
N655
N65536
N656
N657
N658
N659
N66
N660
N661
N662
N663
N664
N665
N666
N667
N668
N669
N67
N670
N671
N67108864
N672
N673
N674
N675
N676
N677
N678
N679
N68
N680
N681
N682
N683
N684
N685
N686
N687
N68719476736
N688
N689
N69
N690
N691
N692
N693
N694
N695
N696
N697
N698
N699
N7
N70
N700
N701
N702
N703
N70368744177664
N704
N705
N706
N707
N708
N709
N71
N710
N711
N712
N713
N714
N715
N716
N717
N718
N719
N72
N720
N72057594037927936
N721
N722
N723
N724
N725
N726
N727
N728
N729
N73
N730
N731
N732
N733
N734
N735
N736
N737
N738
N739
N74
N740
N741
N742
N743
N744
N745
N746
N747
N748
N749
N75
N750
N751
N752
N753
N754
N755
N756
N757
N758
N759
N76
N760
N761
N762
N763
N764
N765
N766
N767
N768
N769
N77
N770
N771
N772
N773
N774
N775
N776
N777
N778
N779
N78
N780
N781
N782
N783
N784
N785
N786
N787
N788
N789
N79
N790
N791
N792
N793
N794
N795
N796
N797
N798
N799
N8
N80
N800
N801
N802
N803
N804
N805
N806
N807
N808
N809
N81
N810
N811
N812
N813
N814
N815
N816
N817
N818
N819
N8192
N82
N820
N821
N822
N823
N824
N825
N826
N827
N828
N829
N83
N830
N831
N832
N833
N834
N835
N836
N837
N838
N8388608
N839
N84
N840
N841
N842
N843
N844
N845
N846
N847
N848
N849
N85
N850
N851
N852
N853
N854
N855
N856
N857
N858
N8589934592
N859
N86
N860
N861
N862
N863
N864
N865
N866
N867
N868
N869
N87
N870
N871
N872
N873
N874
N875
N876
N877
N878
N879
N8796093022208
N88
N880
N881
N882
N883
N884
N885
N886
N887
N888
N889
N89
N890
N891
N892
N893
N894
N895
N896
N897
N898
N899
N9
N90
N900
N9007199254740992
N901
N902
N903
N904
N905
N906
N907
N908
N909
N91
N910
N911
N912
N913
N914
N915
N916
N917
N918
N919
N92
N920
N921
N922
N923
N924
N925
N926
N927
N928
N929
N93
N930
N931
N932
N933
N934
N935
N936
N937
N938
N939
N94
N940
N941
N942
N943
N944
N945
N946
N947
N948
N949
N95
N950
N951
N952
N953
N954
N955
N956
N957
N958
N959
N96
N960
N961
N962
N963
N964
N965
N966
N967
N968
N969
N97
N970
N971
N972
N973
N974
N975
N976
N977
N978
N979
N98
N980
N981
N982
N983
N984
N985
N986
N987
N988
N989
N99
N990
N991
N992
N993
N994
N995
N996
N997
N998
N999
P1
P10
P100
P1000
P10000
P100000
P1000000
P10000000
P100000000
P1000000000
P10000000000
P100000000000
P1000000000000
P10000000000000
P100000000000000
P1000000000000000
P10000000000000000
P100000000000000000
P1000000000000000000
P1001
P1002
P1003
P1004
P1005
P1006
P1007
P1008
P1009
P101
P1010
P1011
P1012
P1013
P1014
P1015
P1016
P1017
P1018
P1019
P102
P1020
P1021
P1022
P1023
P1024
P103
P104
P1048576
P105
P106
P107
P1073741824
P108
P109
P1099511627776
P11
P110
P111
P112
P1125899906842624
P113
P114
P115
P1152921504606846976
P116
P117
P118
P119
P12
P120
P121
P122
P123
P124
P125
P126
P127
P128
P129
P13
P130
P131
P131072
P132
P133
P134
P134217728
P135
P136
P137
P137438953472
P138
P139
P14
P140
P140737488355328
P141
P142
P143
P144
P144115188075855872
P145
P146
P147
P148
P149
P15
P150
P151
P152
P153
P154
P155
P156
P157
P158
P159
P16
P160
P161
P162
P163
P16384
P164
P165
P166
P167
P16777216
P168
P169
P17
P170
P171
P17179869184
P172
P173
P174
P175
P17592186044416
P176
P177
P178
P179
P18
P180
P18014398509481984
P181
P182
P183
P184
P185
P186
P187
P188
P189
P19
P190
P191
P192
P193
P194
P195
P196
P197
P198
P199
P2
P20
P200
P201
P202
P203
P204
P2048
P205
P206
P207
P208
P209
P2097152
P21
P210
P211
P212
P213
P214
P2147483648
P215
P216
P217
P218
P219
P2199023255552
P22
P220
P221
P222
P223
P224
P225
P2251799813685248
P226
P227
P228
P229
P23
P230
P2305843009213693952
P231
P232
P233
P234
P235
P236
P237
P238
P239
P24
P240
P241
P242
P243
P244
P245
P246
P247
P248
P249
P25
P250
P251
P252
P253
P254
P255
P256
P257
P258
P259
P26
P260
P261
P262
P262144
P263
P264
P265
P266
P267
P268
P268435456
P269
P27
P270
P271
P272
P273
P274
P274877906944
P275
P276
P277
P278
P279
P28
P280
P281
P281474976710656
P282
P283
P284
P285
P286
P287
P288
P288230376151711744
P289
P29
P290
P291
P292
P293
P294
P295
P296
P297
P298
P299
P3
P30
P300
P301
P302
P303
P304
P305
P306
P307
P308
P309
P31
P310
P311
P312
P313
P314
P315
P316
P317
P318
P319
P32
P320
P321
P322
P323
P324
P325
P326
P327
P32768
P328
P329
P33
P330
P331
P332
P333
P334
P335
P33554432
P336
P337
P338
P339
P34
P340
P341
P342
P343
P34359738368
P344
P345
P346
P347
P348
P349
P35
P350
P351
P35184372088832
P352
P353
P354
P355
P356
P357
P358
P359
P36
P360
P36028797018963968
P361
P362
P363
P364
P365
P366
P367
P368
P369
P37
P370
P371
P372
P373
P374
P375
P376
P377
P378
P379
P38
P380
P381
P382
P383
P384
P385
P386
P387
P388
P389
P39
P390
P391
P392
P393
P394
P395
P396
P397
P398
P399
P4
P40
P400
P401
P402
P403
P404
P405
P406
P407
P408
P409
P4096
P41
P410
P411
P412
P413
P414
P415
P416
P417
P418
P419
P4194304
P42
P420
P421
P422
P423
P424
P425
P426
P427
P428
P429
P4294967296
P43
P430
P431
P432
P433
P434
P435
P436
P437
P438
P439
P4398046511104
P44
P440
P441
P442
P443
P444
P445
P446
P447
P448
P449
P45
P450
P4503599627370496
P451
P452
P453
P454
P455
P456
P457
P458
P459
P46
P460
P461
P4611686018427387904
P462
P463
P464
P465
P466
P467
P468
P469
P47
P470
P471
P472
P473
P474
P475
P476
P477
P478
P479
P48
P480
P481
P482
P483
P484
P485
P486
P487
P488
P489
P49
P490
P491
P492
P493
P494
P495
P496
P497
P498
P499
P5
P50
P500
P501
P502
P503
P504
P505
P506
P507
P508
P509
P51
P510
P511
P512
P513
P514
P515
P516
P517
P518
P519
P52
P520
P521
P522
P523
P524
P524288
P525
P526
P527
P528
P529
P53
P530
P531
P532
P533
P534
P535
P536
P536870912
P537
P538
P539
P54
P540
P541
P542
P543
P544
P545
P546
P547
P548
P549
P549755813888
P55
P550
P551
P552
P553
P554
P555
P556
P557
P558
P559
P56
P560
P561
P562
P562949953421312
P563
P564
P565
P566
P567
P568
P569
P57
P570
P571
P572
P573
P574
P575
P576
P576460752303423488
P577
P578
P579
P58
P580
P581
P582
P583
P584
P585
P586
P587
P588
P589
P59
P590
P591
P592
P593
P594
P595
P596
P597
P598
P599
P6
P60
P600
P601
P602
P603
P604
P605
P606
P607
P608
P609
P61
P610
P611
P612
P613
P614
P615
P616
P617
P618
P619
P62
P620
P621
P622
P623
P624
P625
P626
P627
P628
P629
P63
P630
P631
P632
P633
P634
P635
P636
P637
P638
P639
P64
P640
P641
P642
P643
P644
P645
P646
P647
P648
P649
P65
P650
P651
P652
P653
P654
P655
P65536
P656
P657
P658
P659
P66
P660
P661
P662
P663
P664
P665
P666
P667
P668
P669
P67
P670
P671
P67108864
P672
P673
P674
P675
P676
P677
P678
P679
P68
P680
P681
P682
P683
P684
P685
P686
P687
P68719476736
P688
P689
P69
P690
P691
P692
P693
P694
P695
P696
P697
P698
P699
P7
P70
P700
P701
P702
P703
P70368744177664
P704
P705
P706
P707
P708
P709
P71
P710
P711
P712
P713
P714
P715
P716
P717
P718
P719
P72
P720
P72057594037927936
P721
P722
P723
P724
P725
P726
P727
P728
P729
P73
P730
P731
P732
P733
P734
P735
P736
P737
P738
P739
P74
P740
P741
P742
P743
P744
P745
P746
P747
P748
P749
P75
P750
P751
P752
P753
P754
P755
P756
P757
P758
P759
P76
P760
P761
P762
P763
P764
P765
P766
P767
P768
P769
P77
P770
P771
P772
P773
P774
P775
P776
P777
P778
P779
P78
P780
P781
P782
P783
P784
P785
P786
P787
P788
P789
P79
P790
P791
P792
P793
P794
P795
P796
P797
P798
P799
P8
P80
P800
P801
P802
P803
P804
P805
P806
P807
P808
P809
P81
P810
P811
P812
P813
P814
P815
P816
P817
P818
P819
P8192
P82
P820
P821
P822
P823
P824
P825
P826
P827
P828
P829
P83
P830
P831
P832
P833
P834
P835
P836
P837
P838
P8388608
P839
P84
P840
P841
P842
P843
P844
P845
P846
P847
P848
P849
P85
P850
P851
P852
P853
P854
P855
P856
P857
P858
P8589934592
P859
P86
P860
P861
P862
P863
P864
P865
P866
P867
P868
P869
P87
P870
P871
P872
P873
P874
P875
P876
P877
P878
P879
P8796093022208
P88
P880
P881
P882
P883
P884
P885
P886
P887
P888
P889
P89
P890
P891
P892
P893
P894
P895
P896
P897
P898
P899
P9
P90
P900
P9007199254740992
P901
P902
P903
P904
P905
P906
P907
P908
P909
P91
P910
P911
P912
P913
P914
P915
P916
P917
P918
P919
P92
P920
P921
P922
P923
P924
P925
P926
P927
P928
P929
P93
P930
P931
P932
P933
P934
P935
P936
P937
P938
P939
P94
P940
P941
P942
P943
P944
P945
P946
P947
P948
P949
P95
P950
P951
P952
P953
P954
P955
P956
P957
P958
P959
P96
P960
P961
P962
P963
P964
P965
P966
P967
P968
P969
P97
P970
P971
P972
P973
P974
P975
P976
P977
P978
P979
P98
P980
P981
P982
P983
P984
P985
P986
P987
P988
P989
P99
P990
P991
P992
P993
P994
P995
P996
P997
P998
P999
True
U0
U1
U10
U100
U1000
U10000
U100000
U1000000
U10000000
U100000000
U1000000000
U10000000000
U100000000000
U1000000000000
U10000000000000
U100000000000000
U1000000000000000
U10000000000000000
U100000000000000000
U1000000000000000000
U10000000000000000000
U1001
U1002
U1003
U1004
U1005
U1006
U1007
U1008
U1009
U101
U1010
U1011
U1012
U1013
U1014
U1015
U1016
U1017
U1018
U1019
U102
U1020
U1021
U1022
U1023
U1024
U103
U104
U1048576
U105
U106
U107
U1073741824
U108
U109
U1099511627776
U11
U110
U111
U112
U1125899906842624
U113
U114
U115
U1152921504606846976
U116
U117
U118
U119
U12
U120
U121
U122
U123
U124
U125
U126
U127
U128
U129
U13
U130
U131
U131072
U132
U133
U134
U134217728
U135
U136
U137
U137438953472
U138
U139
U14
U140
U140737488355328
U141
U142
U143
U144
U144115188075855872
U145
U146
U147
U148
U149
U15
U150
U151
U152
U153
U154
U155
U156
U157
U158
U159
U16
U160
U161
U162
U163
U16384
U164
U165
U166
U167
U16777216
U168
U169
U17
U170
U171
U17179869184
U172
U173
U174
U175
U17592186044416
U176
U177
U178
U179
U18
U180
U18014398509481984
U181
U182
U183
U184
U185
U186
U187
U188
U189
U19
U190
U191
U192
U193
U194
U195
U196
U197
U198
U199
U2
U20
U200
U201
U202
U203
U204
U2048
U205
U206
U207
U208
U209
U2097152
U21
U210
U211
U212
U213
U214
U2147483648
U215
U216
U217
U218
U219
U2199023255552
U22
U220
U221
U222
U223
U224
U225
U2251799813685248
U226
U227
U228
U229
U23
U230
U2305843009213693952
U231
U232
U233
U234
U235
U236
U237
U238
U239
U24
U240
U241
U242
U243
U244
U245
U246
U247
U248
U249
U25
U250
U251
U252
U253
U254
U255
U256
U257
U258
U259
U26
U260
U261
U262
U262144
U263
U264
U265
U266
U267
U268
U268435456
U269
U27
U270
U271
U272
U273
U274
U274877906944
U275
U276
U277
U278
U279
U28
U280
U281
U281474976710656
U282
U283
U284
U285
U286
U287
U288
U288230376151711744
U289
U29
U290
U291
U292
U293
U294
U295
U296
U297
U298
U299
U3
U30
U300
U301
U302
U303
U304
U305
U306
U307
U308
U309
U31
U310
U311
U312
U313
U314
U315
U316
U317
U318
U319
U32
U320
U321
U322
U323
U324
U325
U326
U327
U32768
U328
U329
U33
U330
U331
U332
U333
U334
U335
U33554432
U336
U337
U338
U339
U34
U340
U341
U342
U343
U34359738368
U344
U345
U346
U347
U348
U349
U35
U350
U351
U35184372088832
U352
U353
U354
U355
U356
U357
U358
U359
U36
U360
U36028797018963968
U361
U362
U363
U364
U365
U366
U367
U368
U369
U37
U370
U371
U372
U373
U374
U375
U376
U377
U378
U379
U38
U380
U381
U382
U383
U384
U385
U386
U387
U388
U389
U39
U390
U391
U392
U393
U394
U395
U396
U397
U398
U399
U4
U40
U400
U401
U402
U403
U404
U405
U406
U407
U408
U409
U4096
U41
U410
U411
U412
U413
U414
U415
U416
U417
U418
U419
U4194304
U42
U420
U421
U422
U423
U424
U425
U426
U427
U428
U429
U4294967296
U43
U430
U431
U432
U433
U434
U435
U436
U437
U438
U439
U4398046511104
U44
U440
U441
U442
U443
U444
U445
U446
U447
U448
U449
U45
U450
U4503599627370496
U451
U452
U453
U454
U455
U456
U457
U458
U459
U46
U460
U461
U4611686018427387904
U462
U463
U464
U465
U466
U467
U468
U469
U47
U470
U471
U472
U473
U474
U475
U476
U477
U478
U479
U48
U480
U481
U482
U483
U484
U485
U486
U487
U488
U489
U49
U490
U491
U492
U493
U494
U495
U496
U497
U498
U499
U5
U50
U500
U501
U502
U503
U504
U505
U506
U507
U508
U509
U51
U510
U511
U512
U513
U514
U515
U516
U517
U518
U519
U52
U520
U521
U522
U523
U524
U524288
U525
U526
U527
U528
U529
U53
U530
U531
U532
U533
U534
U535
U536
U536870912
U537
U538
U539
U54
U540
U541
U542
U543
U544
U545
U546
U547
U548
U549
U549755813888
U55
U550
U551
U552
U553
U554
U555
U556
U557
U558
U559
U56
U560
U561
U562
U562949953421312
U563
U564
U565
U566
U567
U568
U569
U57
U570
U571
U572
U573
U574
U575
U576
U576460752303423488
U577
U578
U579
U58
U580
U581
U582
U583
U584
U585
U586
U587
U588
U589
U59
U590
U591
U592
U593
U594
U595
U596
U597
U598
U599
U6
U60
U600
U601
U602
U603
U604
U605
U606
U607
U608
U609
U61
U610
U611
U612
U613
U614
U615
U616
U617
U618
U619
U62
U620
U621
U622
U623
U624
U625
U626
U627
U628
U629
U63
U630
U631
U632
U633
U634
U635
U636
U637
U638
U639
U64
U640
U641
U642
U643
U644
U645
U646
U647
U648
U649
U65
U650
U651
U652
U653
U654
U655
U65536
U656
U657
U658
U659
U66
U660
U661
U662
U663
U664
U665
U666
U667
U668
U669
U67
U670
U671
U67108864
U672
U673
U674
U675
U676
U677
U678
U679
U68
U680
U681
U682
U683
U684
U685
U686
U687
U68719476736
U688
U689
U69
U690
U691
U692
U693
U694
U695
U696
U697
U698
U699
U7
U70
U700
U701
U702
U703
U70368744177664
U704
U705
U706
U707
U708
U709
U71
U710
U711
U712
U713