Renamed information to digital storage
This commit is contained in:
parent
eb8c1a0a37
commit
0b592ac5f1
70
src/units.rs
70
src/units.rs
@ -8,7 +8,7 @@ pub enum UnitType {
|
|||||||
Area,
|
Area,
|
||||||
Volume,
|
Volume,
|
||||||
Mass,
|
Mass,
|
||||||
Information,
|
DigitalStorage,
|
||||||
Energy,
|
Energy,
|
||||||
Power,
|
Power,
|
||||||
Pressure,
|
Pressure,
|
||||||
@ -124,40 +124,40 @@ create_units!(
|
|||||||
ShortTon: (Mass, d128!(907184.74)),
|
ShortTon: (Mass, d128!(907184.74)),
|
||||||
LongTon: (Mass, d128!(1016046.9088)),
|
LongTon: (Mass, d128!(1016046.9088)),
|
||||||
|
|
||||||
Bit: (Information, d128!(1)),
|
Bit: (DigitalStorage, d128!(1)),
|
||||||
Kilobit: (Information, d128!(1000)),
|
Kilobit: (DigitalStorage, d128!(1000)),
|
||||||
Megabit: (Information, d128!(1000000)),
|
Megabit: (DigitalStorage, d128!(1000000)),
|
||||||
Gigabit: (Information, d128!(1000000000)),
|
Gigabit: (DigitalStorage, d128!(1000000000)),
|
||||||
Terabit: (Information, d128!(1000000000000)),
|
Terabit: (DigitalStorage, d128!(1000000000000)),
|
||||||
Petabit: (Information, d128!(1000000000000000)),
|
Petabit: (DigitalStorage, d128!(1000000000000000)),
|
||||||
Exabit: (Information, d128!(1000000000000000000)),
|
Exabit: (DigitalStorage, d128!(1000000000000000000)),
|
||||||
Zettabit: (Information, d128!(1000000000000000000000)),
|
Zettabit: (DigitalStorage, d128!(1000000000000000000000)),
|
||||||
Yottabit: (Information, d128!(1000000000000000000000000)),
|
Yottabit: (DigitalStorage, d128!(1000000000000000000000000)),
|
||||||
Kibibit: (Information, d128!(1024)),
|
Kibibit: (DigitalStorage, d128!(1024)),
|
||||||
Mebibit: (Information, d128!(1048576)),
|
Mebibit: (DigitalStorage, d128!(1048576)),
|
||||||
Gibibit: (Information, d128!(1073741824)),
|
Gibibit: (DigitalStorage, d128!(1073741824)),
|
||||||
Tebibit: (Information, d128!(1099511627776)),
|
Tebibit: (DigitalStorage, d128!(1099511627776)),
|
||||||
Pebibit: (Information, d128!(1125899906842624)),
|
Pebibit: (DigitalStorage, d128!(1125899906842624)),
|
||||||
Exbibit: (Information, d128!(1152921504606846976)),
|
Exbibit: (DigitalStorage, d128!(1152921504606846976)),
|
||||||
Zebibit: (Information, d128!(1180591620717411303424)),
|
Zebibit: (DigitalStorage, d128!(1180591620717411303424)),
|
||||||
Yobibit: (Information, d128!(1208925819614629174706176)),
|
Yobibit: (DigitalStorage, d128!(1208925819614629174706176)),
|
||||||
Byte: (Information, d128!(8)),
|
Byte: (DigitalStorage, d128!(8)),
|
||||||
Kilobyte: (Information, d128!(8000)),
|
Kilobyte: (DigitalStorage, d128!(8000)),
|
||||||
Megabyte: (Information, d128!(8000000)),
|
Megabyte: (DigitalStorage, d128!(8000000)),
|
||||||
Gigabyte: (Information, d128!(8000000000)),
|
Gigabyte: (DigitalStorage, d128!(8000000000)),
|
||||||
Terabyte: (Information, d128!(8000000000000)),
|
Terabyte: (DigitalStorage, d128!(8000000000000)),
|
||||||
Petabyte: (Information, d128!(8000000000000000)),
|
Petabyte: (DigitalStorage, d128!(8000000000000000)),
|
||||||
Exabyte: (Information, d128!(8000000000000000000)),
|
Exabyte: (DigitalStorage, d128!(8000000000000000000)),
|
||||||
Zettabyte: (Information, d128!(8000000000000000000000)),
|
Zettabyte: (DigitalStorage, d128!(8000000000000000000000)),
|
||||||
Yottabyte: (Information, d128!(8000000000000000000000000)),
|
Yottabyte: (DigitalStorage, d128!(8000000000000000000000000)),
|
||||||
Kibibyte: (Information, d128!(8192)),
|
Kibibyte: (DigitalStorage, d128!(8192)),
|
||||||
Mebibyte: (Information, d128!(8388608)),
|
Mebibyte: (DigitalStorage, d128!(8388608)),
|
||||||
Gibibyte: (Information, d128!(8589934592)),
|
Gibibyte: (DigitalStorage, d128!(8589934592)),
|
||||||
Tebibyte: (Information, d128!(8796093022208)),
|
Tebibyte: (DigitalStorage, d128!(8796093022208)),
|
||||||
Pebibyte: (Information, d128!(9007199254740992)),
|
Pebibyte: (DigitalStorage, d128!(9007199254740992)),
|
||||||
Exbibyte: (Information, d128!(9223372036854775808)),
|
Exbibyte: (DigitalStorage, d128!(9223372036854775808)),
|
||||||
Zebibyte: (Information, d128!(9444732965739290427392)),
|
Zebibyte: (DigitalStorage, d128!(9444732965739290427392)),
|
||||||
Yobibyte: (Information, d128!(9671406556917033397649408)),
|
Yobibyte: (DigitalStorage, d128!(9671406556917033397649408)),
|
||||||
|
|
||||||
Millijoule: (Energy, d128!(0.001)),
|
Millijoule: (Energy, d128!(0.001)),
|
||||||
Joule: (Energy, d128!(1)),
|
Joule: (Energy, d128!(1)),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user